this post was submitted on 16 Jun 2023
15 points (100.0% liked)

Programming

13345 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

Understanding ActivityPub and Federation

I have tried to understand how Federation works but I'm getting a feeling that there's some rather large gaps here. My first attempt was to find an API implementation in python, 3 wasted hours of my life later and I'm making requests.request() calls like it's 2007. And I still can't access the content as presented on the webinterfaces. There doesn't seem to be a way to access eg the communities tab via activitypub? Any Help?

@programming

you are viewing a single comment's thread
view the rest of the comments
[–] russmatney@programming.dev 2 points 1 year ago (1 children)

Maybe you could dig into a few open-source clients to see how they work with it?

E.g. someone shared a basic lemmy viewer in godot the other day: https://github.com/sevonj/gdlm - it’s rough but probably not too much to read through. Was posted in /c/godot: https://programming.dev/post/48482

[–] JustusWingert@mastodon.social 1 points 1 year ago

@russmatney thanks for that one! I did look into how other clients are doing stuff quite a bit. The one you mentioned simply takes a valid endpoint (ie a lemmy community AcitivityPub-id, meaning the URL to it). The issue I'm facing is finding those endpoints. In theory you'd want to be able to find valid endpoints for an instance somehow, which I just can't seem to do.