getindiekit / indiekit

The little Node.js server with all the parts needed to publish content to your personal website and share it on social networks.
https://getindiekit.com
MIT License
341 stars 36 forks source link

Images being published twice #24

Closed paulrobertlloyd closed 5 years ago

paulrobertlloyd commented 5 years ago

Happens when using Quill. Maybe other editors, too?

Having somewhat duplicated code in lib/microformats/dervive-photo.js and lib/micropub/create-media.js may be to blame. It certainly doesn’t smell right.

paulrobertlloyd commented 5 years ago

Everything works fine when clients post media to the media-endpoint. May be problems if they post as multipart form data.

paulrobertlloyd commented 5 years ago

Fixed, with better understanding of how the endpoint and multipart attachments work.