Email or username:

Password:

Forgot your password?
Top-level
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

15 comments
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