snarfed / bridgy-fed

🌉 A bridge between decentralized social network protocols
https://fed.brid.gy/
Creative Commons Zero v1.0 Universal
488 stars 28 forks source link

support Akkoma #374

Open snarfed opened 1 year ago

snarfed commented 1 year ago

https://akkoma.social/

snarfed commented 1 year ago

I federated this like of this post on akko.wtf (running backend v3.5.0-12-g63f2d1cb), and got an HTTP 500 error with body {"errors":{"detail":"Internal server error"}} on inbox delivery to https://akko.wtf/users/rei/inbox. Not much help there. Bridgy log here.

Akkoma is a fork of Pleroma, and this is the same error we got from Pleroma in https://github.com/snarfed/bridgy-fed/issues/12#issuecomment-1385812088, which makes sense.

I'm guessing it choked on some part of the AS2 that's a composite object when it expects a string, maybe actor. Full AS2 object we sent:

{
  "published": "2023-01-18T14:54:09-08:00",
  "content": "likes <a class=\"u-like u-like-of\" href=\"https://akko.wtf/notice/ARP7mWTNZxbJAzPTIe\">Luna Nova</a>",
  "url": "https://fed.brid.gy/r/https://snarfed.org/2023-01-18_luna-nova",
  "actor": {
    "url": "https://fed.brid.gy/r/https://snarfed.org/",
    "image": {
      "url": "https://secure.gravatar.com/avatar/947b5f3f323da0ef785b6f02d9c265d6?s=96&d=blank&r=g",
      "type": "Image"
    },
    "type": "Person",
    "name": "Ryan Barrett",
    "icon": {
      "url": "https://secure.gravatar.com/avatar/947b5f3f323da0ef785b6f02d9c265d6?s=96&d=blank&r=g",
      "type": "Image"
    },
    "id": "https://fed.brid.gy/snarfed.org",
    "preferredUsername": "[snarfed.org](http://snarfed.org/)"
  },
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Like",
  "object": "https://akko.wtf/objects/8044263c-b1d3-495a-9a43-131bee571c80",
  "id": "https://fed.brid.gy/r/https://snarfed.org/2023-01-18_luna-nova",
  "cc": [
    "https://akko.wtf/users/rei",
    "https://www.w3.org/ns/activitystreams#Public",
    "https://akko.wtf/users/rei/followers"
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ]
}
snarfed commented 1 year ago

Reported to Akkoma in https://akkoma.dev/AkkomaGang/akkoma/issues/438

snarfed commented 8 months ago

442 got a like to work! Reply got a 500 though. Outgoing AS2 activity:

{
  "id": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_luna-nova-3#bridgy-fed-create",
  "actor": "https://fed.brid.gy/snarfed.org",
  "published": "2023-10-12T03:41:54.364982+00:00",
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Create",
  "object": {
    "published": "2023-10-11T20:41:49-07:00",
    "content": "<a class=\"u-in-reply-to\" href=\"https://akko.wtf/notice/ARP7mWTNZxbJAzPTIe\"></a>\n<div class=\"e-content\">\nsquawk\n</div>",
    "url": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_luna-nova-3",
    "id": "https://fed.brid.gy/r/https://snarfed.org/2023-10-11_luna-nova-3",
    "type": "Note",
    "attributedTo": "https://fed.brid.gy/snarfed.org",
    "inReplyTo": "https://akko.wtf/objects/8044263c-b1d3-495a-9a43-131bee571c80",
    "cc": [
      "https://akko.wtf/users/rei",
      "https://akko.wtf/users/rei/followers",
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "tag": [
      {
        "type": "Mention",
        "href": "https://akko.wtf/users/rei"
      },
      {
        "type": "Mention",
        "href": "https://akko.wtf/users/rei"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public"
    ]
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ]
}
snarfed commented 4 months ago

@hellquist re https://github.com/snarfed/bridgy-fed/issues/12#issuecomment-1984589656 , Bridgy Fed automatically sends an Accept activity back, but I'm guessing the Akkoma 500 bug above also affects those Accepts.

hellquist commented 4 months ago

@hellquist re #12 (comment) , Bridgy Fed automatically sends an Accept activity back, but I'm guessing the Akkoma 500 bug above also affects those Accepts.

Ah, I see. Thanks. Oh, and also thanks for your work with the brid.gy services in general, much appreciated.

snan commented 1 month ago

(Just reporting in, hope I don't come across as entitled or impatient because that's not how I feel. Don't worry.♥︎)

Here's where I'm at right now:

I followed @bsky.brid.gy@bsky.brid.gy from Akkoma but the follow hasn't gone through, still says Request sent.

https://bsky.app/profile/Sandra.idiomdrottning.org.ap.brid.gy did show up but posts I've made whether before or after following the bridge hasn't shown up. I'm on Akkoma 3.13.

snarfed commented 1 month ago

Thanks! I've pinged them again on https://akkoma.dev/AkkomaGang/akkoma/issues/438#issuecomment-11995

snan commented 1 month ago

I saw ♥︎ I am subbed to that thread too 💁🏻‍♀️