this post was submitted on 11 Jan 2024
57 points (100.0% liked)
Fediverse
28528 readers
240 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
ActivityPub uses the
acct
URI to kickstart itself and then uses LD-JSON to span the network. The JSON contains fields and lists that can be dynamically expanded into whatever representation you need, with default schemas ready for use through ActivityStreams.I think it's difficult to set up a URI standard for ActivityStreams objects because there is no standard identifier, nor is there a guarantee that these identifiers will be URI-safe. Objects do contain references to (unique) URLs that identify them, but the data is linked either by value (written out completely) or as URLs.
Setting up a URI scheme can be difficult to do comprehensively. How do you represent a link to a repost of an edit of a Location object? You can't exactly expect the URL to indicate the type, so you'll probably end up with "ap:server.com/1234", but at that point you're leaving out the important part ("where do I go to fetch this object"). You can't just assume that there are standard endpoints because ActivityPub doesn't standardise any. Soms apps break on showing Lemmy content for this reason; they were written for Mastodon and Mastodon alone, so their URL generation breaks.
I think an URI scheme would just become one of those unimplemented or useless specifications. It would only distract from what I consider to be the much better solution: fixing up and implementing ActivityPub's client-server protocol.
The CS protocol lacks important things (like "how do I log in"), but it exposes ActivityPub directly. Your server will expose a bunch of lists (timelines? communities? Up to the server!) and all the app needs to do is render those. Dig down a level and you get a bunch of objects; posts, notes, comments, whatever you can think of, and they too can be rendered by the client in any way you may want.
The protocol is rather freeform but importantly, the server takes care of any references and dereferencing. Clients shouldn't need to deal with that mess of they're connected to a server that handles everything for them already.
You can write a super generic ActivityPub CS client that operates somewhat like a file browser, and then it should work with any type of ActivityPub content. A smarter app could detect the type of server responsible for managing certain things (i.e. when you're following a Lemmy community, treat posts in it as such, and not as a flat timeline), and the protocol extensions that every server adds should help with that.
The only limitation, in my opinion, is the fact that so few servers actually implement the ActivityPub CS protocol, and that in turn there are only a few applications that make use of it. I think this comes down to the vagueness of things like "how do I tell whay user this is in a standardised way" and if we can improve that part of the protocol, we may be able to get the "one single super app" for ActivityPub.
Thanks for the thoughtful response.
Yes, this seems like one of the bigger hitches. I've never investigated, but I wonder if the
git+ssh
plan is formalized, and whether it is an optionSeems a mistake to me too imagine that the future of ActivityPub is servers limited to specific certain content types?
Need to think more about the client/server parts of your post, but again, thanks for taking the time
I've been thinking a lot about the modality differences between microblogging and forums, and still working out my thoughts, but I definitely agree that generic solutions end up failing everyone.
I'd like to believe that today's practice isn't yet so cemented that we can't aspire to better. I think there's a lot of interop work even among conceptually aligned projects -- there are a couple of FEPs i haven't digested yet, eg FEP-1b12: Group federation (as well as, I just found, one about URLs)
I think the targets I'm looking for are a unified feed that can fan out to specialized clients for detail, and a system that embraces the power of links with minimal friction. EDIT oh, and maybe something that makes it easier to follow specific people across different modalities without having to rediscover them -- although maybe that's adjacent to the topic of this thread