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).