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.
Terence Eden
in reply to Terence Eden • • •OK! Posts and their attachments can now be deleted from #ActivityBot.
Source code: gitlab.com/edent/activity-bot/
Taking a little break for now, so you get to vote on the next feature:
Terence Eden / ActivityBot · GitLab
GitLab- Upload video (probably easy) (9%, 2 votes)
- Edit posts (probably hard) (18%, 4 votes)
- Set "Content Warning" (probably medium) (72%, 16 votes)
- Something else (leave a comment) (0%, 0 votes)
22 voters. Poll end: 1 week agoTerence Eden
in reply to Terence Eden • • •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.
w3.org/TR/activitystreams-voca…
Or am I misunderstanding something fundamental?
Activity Vocabulary
www.w3.orgEugen Rochko
in reply to Terence Eden • • •Terence Eden
in reply to Eugen Rochko • • •@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?
Eugen Rochko
in reply to Terence Eden • • •Terence Eden
in reply to Eugen Rochko • • •