Help improving federation between Lemmy and other projects

I’ve been testing GoToSocial with Lemmy. As of 0.7.0rc2:

GTS can:

  • Fetch Lemmy groups, users, posts, and comments.
  • Like, boost or reply to Lemmy posts or comments
  • Federate those replies and boosts to GTS or Mastodon followers.

GTS can’t:

  • Follow Lemmy groups or users
  • Federate those likes or replies back to Lemmy.

GoToSocial is stricter than most ActivityPub implementations about HTTP signatures, and I am seeing “http request wasn’t signed or http signature was invalid” in the debug logs when Lemmy responds to a follow request [edit] and to a reply.

In case that’s not the issue, or not the only issue, here’s a sample of the JSON being sent for following:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "actor": "https://gts.keysmash.xyz/users/kelsonv",
  "id": "https://gts.keysmash.xyz/users/kelsonv/follow/01R19THB79WY9H1AQQYVRGVPCT",
  "object": "https://lemmy.ml/c/fediverse",
  "to": "https://lemmy.ml/c/fediverse",
  "type": "Follow"
}

Edit: and here’s a sample of what GTS is building for the reply:

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "actor": "https://gts.keysmash.xyz/users/kelsonv",
  "cc": [
    "https://gts.keysmash.xyz/users/kelsonv/followers",
    "https://lemmy.ml/u/humanetech"
  ],
  "id": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE/activity",
  "object": {
    "attachment": [],
    "attributedTo": "https://gts.keysmash.xyz/users/kelsonv",
    "cc": [
      "https://gts.keysmash.xyz/users/kelsonv/followers",
      "https://lemmy.ml/u/humanetech"
    ],
    "content": "\\u003cp\\u003e\\u003cspan class=\"h-card\"\\u003e\\u003ca href=\"https://lemmy.ml/u/humanetech\" class=\"u-url mention\" rel=\"nofollow noreferrer noopener\" target=\"_blank\"\\u003e@\\u003cspan\\u003ehumanetech\\u003c/span\\u003e\\u003c/a\\u003e\\u003c/span\\u003e I just signed up over at SocialHub, and I'm reporting some federation issues with GoToSocial and Lemmy.\\u003c/p\\u003e",
    "id": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE",
    "inReplyTo": "https://lemmy.ml/post/746045",
    "published": "2023-02-13T04:50:05Z",
    "replies": {
      "first": {
        "id": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE/replies?page=true",
        "next": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE/replies?only_other_accounts=false\\u0026page=true",
        "partOf": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE/replies",
        "type": "CollectionPage"
      },
      "id": "https://gts.keysmash.xyz/users/kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE/replies",
      "type": "Collection"
    },
    "sensitive": false,
    "summary": "Please promote your SocialHub. It is important!",
    "tag": {
      "href": "https://lemmy.ml/u/humanetech",
      "name": "@humanetech@lemmy.ml",
      "type": "Mention"
    },
    "to": "https://www.w3.org/ns/activitystreams#Public",
    "type": "Note",
    "url": "https://gts.keysmash.xyz/@kelsonv/statuses/01GS4HQM3X5PCE182TENA24ASE"
  },
  "published": "2023-02-13T04:50:05Z",
  "to": "https://www.w3.org/ns/activitystreams#Public",
  "type": "Create"
}
1 Like