Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)
https://joinplu.me
GNU Affero General Public License v3.0
2.1k stars 133 forks source link

Federation with Lemmy #945

Open Nutomic opened 2 years ago

Nutomic commented 2 years ago

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: https://github.com/LemmyNet/lemmy/pull/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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Yup. I want to do so.

KitaitiMakoto commented 2 years ago

refs: https://git.joinplu.me/Plume/Plume/issues/774