Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federation with Lemmy #945

Open
Nutomic opened this issue May 12, 2022 · 4 comments
Open

Federation with Lemmy #945

Nutomic opened this issue May 12, 2022 · 4 comments

Comments

@Nutomic
Copy link

Nutomic commented May 12, 2022

Hi, lemmy dev here. i saw your release announcement yesterday, and decided to have a look how Plume federation works. Turns out its very easy to make it compatible with Lemmy, as you also use groups. After a few changes its already working from the Lemmy side, you can fetch and view Plume users, groups and articles.

See here for an example: https://ds9.lemmy.ml/post/27751

PR in Lemmy repo: LemmyNet/lemmy#2258

But there is a problem with activities, the ones sent from Lemmy are rejected:

Job errored: Processing(Send https://voyager.lemmy.ml/activities/follow/d649b385-6ad9-415d-b010-ab547eb9fabd to https://fediverse.blog/~/PlumeDev/inbox failed with status 404 Not Found: <!DOCTYPE html>
lemmy_1     | <html class="default-light">
lemmy_1     |     <head>
lemmy_1     |         <meta charset="utf-8" />
lemmy_1     |         <title>Page not found ⋅ Plume</title>
...

It looks like the activity is not routed correctly, maybe because of the content-type header? In our case its application/activity+json.

Another problem, i noticed some groups like https://blogs.kitaitimakoto.net/~/ArticlesEssays/ have a nested object with type Image and no url. This might be happening because the user hasnt set any avatar. I think it is incorrect, and should instead be encoded by leaving the image field out, or setting it to null.

"image": {
    "type": "Image"
},

Btw i tried to open this issue on your gitea, but still didnt get any confirmation mail.

@KitaitiMakoto
Copy link
Contributor

It's so nice if the federation is achieved!

But there is a problem with activities, the ones sent from Lemmy are rejected:

It's because currently blog's inbox is not implemented in spite of Group has inbox property. We need add it.

On image, you're right. We will fix it.

@Nutomic
Copy link
Author

Nutomic commented May 13, 2022

It would be great if you could implement the Group inbox and implement following for it. Lemmy cant follow Person accounts, so in the current state there would be very little interaction between both platforms.

@KitaitiMakoto
Copy link
Contributor

Yup. I want to do so.

@KitaitiMakoto
Copy link
Contributor

StarryAster pushed a commit to StarryAster/Plume that referenced this issue May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants