RE: https://example.viii.fi/posts/69aeb347-03d0-dc44-83c8-9c7c488ff6e0.json

Thanks for all the suggestions. I've now implemented multiple images.

Next, I'll see if I can support updating or deleting posts.

OK! Posts and their attachments can now be deleted from #ActivityBot.

Source code: https://gitlab.com/edent/activity-bot/

Taking a little break for now, so you get to vote on the next feature:

Upload video (probably easy)
8.3%
Edit posts (probably hard)
20.8%
Set "Content Warning" (probably medium)
70.8%
Something else (leave a comment)
0%
Poll ended at .
Terence Eden / ActivityBot ยท GitLab

A single PHP file which acts as a basic ActivityPub bot server.

GitLab

OK, for real, why does #Mastodon use an attachment type of "Document" when posting a video?

I think the spec says "Video" is OK to use.
https://www.w3.org/TR/activitystreams-vocabulary/#dfn-video

Or am I misunderstanding something fundamental?

Activity Vocabulary

@Edent Video is a subtype of Document, so it's not really wrong.

@Gargron I defer to your expertise, of course ๐Ÿ˜„ But wouldn't having Images be of type Image etc be more precise?

I guess a duff server could say something is of type video, but give it a MIME of a static image - so clients should check the media anyway?

@Edent Yes, ultimately it's up to the receiver to figure out how the file type is to be handled. For example, GIFs are converted to MP4 files without sound in Mastodon. Is that an Image or a Video? I'm not sure you'd gain anything from specifying this on the protocol level.
@Gargron ah! That makes sense. Ta ๐Ÿ‘