this post was submitted on 10 Jan 2024
1 points (100.0% liked)

lemmy.ml meta

1406 readers
1 users here now

Anything about the lemmy.ml instance and its moderation.

For discussion about the Lemmy software project, go to [email protected].

founded 3 years ago
MODERATORS
 

I followed some popular communities from a Mastodon server ages ago, and then unsubscribed when I was satisfied that it was working.

However, lemmy seems to have some problem with the way Mastodon sends an 'Undo/Follow', so it's still been sending traffic ever since. Recreating it on a lemmy server I booted, journalctl shows this error:

WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: Unknown:
0: lemmy_apub::insert_received_activity
        with ap_id=Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("activitypub.academy")), port: None, path: "/e97071d0-54e4-4527-9865-e44cf1a55970", query: None, fragment: None }
          at crates/apub/src/lib.rs:191
1: lemmy_apub::activities::following::follow::verify
          at crates/apub/src/activities/following/follow.rs:78
2: lemmy_apub::activities::following::undo_follow::verify
          at crates/apub/src/activities/following/undo_follow.rs:66
3: lemmy_apub::http::community::community_inbox
          at crates/apub/src/http/community.rs:50
4: lemmy_server::root_span_builder::HTTP request
        with http.method=POST http.scheme="https" http.host=38ec-77-100-144-83.ngrok-free.app http.target=/c/test1/inbox otel.kind="server" request_id=70c556c1-9f2c-421d-90f3-826e9d12879c http.status_code=400 otel.status_code="OK"
          at src/root_span_builder.rs:16

I reconfigured the JSON that Mastodon sends to be more like a Lemmy one, signed the http request with a new set of keys, and sent it via a command-line script. Technically, this works, in that I can use the script to subscribe and unsubscribe from lemmy communities. Unfortunately, it doesn't work with the private key for the old Mastodon user and lemmy.ml (which rejects the http requests). I don't know why, but it has stalled my attempts to unsubscribe from my side.

As you're likely aware, lemmy.ml has bouts of sending out an absolute firehose of info at times, and it's a waste of your resources sending them to me (who's resorted to 403ing everything, so they don't overwhelm the ActivityPub server I'm building).

So, if possible, can someone have look what a user from lemmon.website is still subscribed to (memes and asklemmy, certainly) and unsubscribe them please?

I can provide some credentials on lemmon.website if you require.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 10 months ago

Thanks for the thorough investigation and for suggesting activitypub.academy. I found the problem and opened a pull request.

Let me know if you find any other incompatibilities with Mastodon (or other platforms). For example I only found out some weeks ago that Mastodon federates reports in a different format from Lemmy (which is supported from Lemmy 0.19.2).