microdotblog / microblog-mac

Micro.blog for Mac
https://micro.blog
MIT License
37 stars 6 forks source link

Fix missing images when exporting to Day One #12

Closed otaviocc closed 2 years ago

otaviocc commented 2 years ago

When exporting to Day One, Micro.blog for macOS creates the following structure in the file system: uploads/YYYY/file.jpg.

Currently the year component isn't added to the file path, resulting in missing entries (it calls /usr/local/bin/dayone2 passing -a but without a valid argument, causing Day One to ignore the entry completely).

This Pull Request adds the year component to the file path.

manton commented 2 years ago

Good catch, thanks!

otaviocc commented 2 years ago

You're welcome @manton! With this patch I managed to import all my Micro.blog posts, including images, to Day One.

manton commented 2 years ago

This is working great and will be in the next bug fix update, version 2.4.4.