Email or username:

Password:

Forgot your password?
Gregory

#Smithereen update. Group admin lists are now federated. The #ActivityPub representation is compatible with PeerTube (via attributedTo) but extended with titles, so here's a screenshot of how a PeerTube channel looks in my UI.

I also rewrote my handling of cases when one object depends on another and you need to fetch the entire chain (wall post depends on its owner group, group then depends on its admin actors).

@activitypub

22 comments
Gregory

I'm now going to take a break from Smithereen to participate in this Telegram contest: t.me/contest/234

felix

@grishka that telegram thing is a really interesting way to do development. Have you participated in it before?

Gregory

@felix actually, I started participating in Durov's contests more than 10 years ago. These were VK ones where you had to make Flash apps.

So, yes, I did, a lot. And won some. Except this time Pavel doesn't really like me any more (he wouldn't have fired me from Telegram if he did), so this is more of a spite thing. Plus the ability to win some money, which is nice when you don't have a job.

felix

@grishka I didnt know you worked for telegram, that sounds interesting. It sounds like you know the founder personally?

Gregory

@felix I do, of course. I worked both in VK and in Telegram. Those contests are what actually helped me get my job at VK in the first place.

felix

@grishka so peertube supports groups? Im surprised by that. Also, have you ever tried to federate with lemmy? We have open test instances at enterprise.lemmy.ml

@activitypub

Gregory

@felix PeerTube represents its channels as Group actors.

I tried poking into Lemmy maybe a month ago last time, and I couldn't get it to return ActivityPub objects. IIRC it didn't parse the Accept header correctly, and thus could only federate with itself. Haven't checked if that's been fixed since.

felix

@grishka no, I didnt have time to figure that out because it seemed low priority. Why dont you simply send one of the headers we support?

Gregory

@felix well, I send the one suggested by the spec:
Accept: application/ld+json; profile="w3.org/ns/activitystreams"

The spec also says that you're supposed to support application/activity+json. Mastodon actually sends both, comma-separated.

Gregory

@felix (mastodon parsing links and hiding https:// isn't being helpful here)

felix

@grishka I'm pretty sure that one should work. Which instance are you testing with?

Mastodon is a whole different beast, its probably gonna be a while before we federate with it.

Gregory

@felix friends.grishka.me, but iirc I didn't even go as far as testing with an instance, I was just poking around with sending requests manually, like this.

Ok, it works now, but some things are of types I don't support, like Page.

Gregory

@felix other things are of types I do support, but don't have their JSON-LD contexts right, it seems... This needs "https:// w3id. org/security/v1" because that's where publicKey is defined.

Gregory

@felix also the pt: namespace isn't defined anywhere

smallcircles (Humane Tech Now)

@grishka @felix

I see that FEDERATION.md is not updated yet.. are you planning to?

It's far from a perfect mechanism, but can still be a timesaver when ppl are figuring things out.

For #lemmy it'd also be nice to have this. A couple of examples are shown in the #ActivityPub implementers guide on #socialhub

See: socialhub.activitypub.rocks/t/

(You can edit yourself, as this is a wiki post).

cc @activitypub

Gregory

@humanetech @felix yeah I will update it at some point. With both this and the wall stuff, I changed it since to follow that FEP of mine.

felix

@grishka the truth is that we dont really know how the context works, or what it should look like. but its easy to fix because its just a hardcoded string. would you like to make an issue or a PR?

yerbamate.ml/LemmyNet/lemmy/sr

Gregory

@felix I may try, though keep in mind that I've never written Rust.

(localizing developer software is almost always a mistake, this button says literally "guilt" and it's hilarious)

felix replied to Gregory

@grishka that looks good, thanks. You can see if it compiles by running cargo check, but thats not really necessary here. Unfortunately we only have ci on github.

felix replied to Gregory

@grishka okay merged, i just had to make a small change to make it compile.

Go Up