Yes I know #Mastodon isn't "the ActivityPub", but it's something I still want to federate with :P
@jaywink getting closer it seems?!
@liaizon Yeah! Missing mentions and a bunch of small details. Also need to test migration path from purely Diaspora profiles to ActivityPub profiles on the major platforms. Then I will switch my own profile over to ActivityPub. Hopefully within a week!
That means this account will, finally, become unnecessary ;)
@jaywink excited to have a new dynamic enter into our *verse!
@jaywink Maybe because of videos that aren't Images so to speak ?
@tcit AP also has a `Video` object that is a subtype of `Document`, just like `Image` ;)
@jaywink Found this :
Represent all attachments as Document instead of Image/Video specifically
(Because for remote ones we may not know for sure)
@tcit cool 👍 Yeah i thought there was probably a decision made due to some reason. And that is ok.
I've done it so that when one needs to send a payload with a certain content type, the CT is fetched by doing a HEAD request (with a short timeout to avoid getting bogged down) - https://git.feneas.org/jaywink/federation/blob/master/federation/utils/network.py#L21
Not sure how 100% reliable this is, but it seems to work well enough.
I'm glad Mastodon accepts `Image` type inbound even if it uses `Document` outbound 👍
@bortzmeyer This is how it's supposed to be according to AS2: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image
@jaywink It's just an example, an image, like any object, can include content https://www.w3.org/TR/activitystreams-vocabulary/#dfn-content
@bortzmeyer Yeah the trouble is representing all possibilities, especially in a large spec (framework) like AS2/AP.
Personally, authoring a server, I would probably not support image blobs in payloads by design. It's probably something that could be useful in some applications, but for me duplicating images across with payloads sounds very wasteful. Cat pictures and memes take enough of the storage space of the internet already as it is ;) That is why we have links.
@jaywink Yes, also, image blobs are a great way to DoS a server since Mastodon does not check someone on the instance is subscribed to this actor before accepting a Create activity from him/her.
Instance majoritairement francophone. Nous ne régulons la fédération. Aucun contenu du fédiverse n'est filtré par une décision d'administrateur ou de modérateur.