Title, description and id are now correctly fetched over ActivityPub. But the library we are using is a mess, and the code is extremely ugly. Also our database and logic needs a good number of changes to deal with federation (like we cant use simple numeric IDs).

@mariusor
link
42Y

Why do you think you’re not able to use numeric ids?

@nutomic
admin
creator
link
42Y

Well right now Lemmy uses only the numeric ID to reference communities. Thats not gonna work with federation because there will be multiple communities with ID 1 for example. We could use something like id@instance but that looks ugly, so better go with name@instance directly. Though what I’ve seen most are randomized IDs like https://radical.town/@felix/103279326280720653 (okay thats also numeric, I was thinking of Peertube IDs like https://peertube.social/videos/watch/b93a8c16-cc62-4c31-9556-ea71a27d80ee when I wrote that).

Btw how far along are you with implementing federation?

@mariusor
link
62Y

Not closer than I was a month ago sadly. I got bogged down in some C2S details.

That being said, my library has pretty much interchangeable C2S - S2S behaviour. Ie, the dev needs not worry about the distinction too much.

Returning to the ID problem. In ActivityPub the ID you expose when federating needs to be a fully qualified IRI, so multiple instances with containing the local numeric ID 1 should not a problem. Otherwise collisions would happen even if using UUIDs or some other non numeric sequence logic.

@AgreeableLandscape
admin
link
6
edit-2
2Y

Good on both you and /u/nutomic (and anyone else) for continuing to work on federation though!

@mariusor
link
42Y

Well, I’m working on federation on another project. :) Thank you, though.

@nutomic
admin
creator
link
42Y

Okay so I’m more thinking of the URLs that are visible to the user, not of ActivityPub. Still need to get more familiar with that.

@AgreeableLandscape
admin
link
3
edit-2
2Y

For user-visible URLs, keep in mind that having plaintext names (so something like https://lemmy.ml/c/community@communism.lemmy.ml) is good for both human readability and search engine optimization.

@AgreeableLandscape
admin
link
1
edit-2
2Y

deleted by creator

@myself33
link
32Y

Thank you to all Lemmy teams !

@oriond
link
32Y

Thank you so much! Keep up the good work!

General Programming Discussion
!programming

    A general programming discussion community.

    Rules:

    1. Be civil.

    Other communities:

    • /c/rust
    • /c/python
    • /c/powershell
    • /c/haskell
    • /c/fpcomplete
    • /c/cpp
    • /c/c_programming
    • /c/julia
    • 0 users online
    • 31 users / day
    • 44 users / week
    • 64 users / month
    • 123 users / 6 months
    • 2.63K subscribers
    • 745 Posts
    • 1.03K Comments
    • Modlog