If a discourse post has embedded images, now they are lost when the post is federated. It would be great if they could be attached to federated posts. Bonus points if the alt
description is federated as well.
1 Like
angus
(Angus McLeod)
May 7, 2025, 6:04am
2
This feature will be part of the plugin once this PR is merged
main
← angusmcleod:add_media_support
opened 01:07PM - 20 Mar 25 UTC
@pmusaraj This adds support for image attachments in the simplest way possible. … This is the first step in adding media support.
Next steps after this are:
- Potentially improve the attachment - post - upload relationship. This likely will be needed for outgoing support.
- Improve image feature support, e.g. Mastodon's [focalPoint](https://docs.joinmastodon.org/spec/activitypub/#focalPoint)), [blurhash](https://docs.joinmastodon.org/spec/activitypub/#blurhash), and width/height attributes.
- Add more tests, e.g. integration (end to end).
Notes:
- Some platforms use `Document` attachment types for images (instead of `Image`).
- Attachments can be added to Objects other than Notes or Articles (e.g. [Mastodon uses it for certain profile attributes](https://docs.joinmastodon.org/spec/activitypub/#PropertyValue)), and we may want to support other types of attachments in the future (hence the need for a ploymorphic association).
4 Likes
Jagster
(Jakke Lehtonen)
May 7, 2025, 6:28am
3
Nice! Very much needed. Thanks!
(And now starts continous F5 banging and waiting for status change )
pmusaraj
(Penar Musaraj)
May 7, 2025, 6:44pm
5
This is merged now, sorry for the delay.
3 Likes