From 6ba481c99ad98d953d982a97f2a4f43513e2efd9 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sun, 15 Dec 2024 10:16:56 -0800 Subject: [PATCH] activitypub.actor: put sharedInbox on actor id's domain for #1570 --- activitypub.py | 2 +- tests/test_activitypub.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activitypub.py b/activitypub.py index bc742aa2..881f6c5f 100644 --- a/activitypub.py +++ b/activitypub.py @@ -1038,7 +1038,7 @@ def actor(handle_or_id): 'following': id + '/following', 'followers': id + '/followers', 'endpoints': { - 'sharedInbox': subdomain_wrap(proto, '/ap/sharedInbox'), + 'sharedInbox': urljoin(id, '/ap/sharedInbox'), }, }) diff --git a/tests/test_activitypub.py b/tests/test_activitypub.py index e8e140c0..c7d94440 100644 --- a/tests/test_activitypub.py +++ b/tests/test_activitypub.py @@ -71,7 +71,7 @@ 'following': 'http://localhost/user.com/following', 'followers': 'http://localhost/user.com/followers', 'endpoints': { - 'sharedInbox': 'https://web.brid.gy/ap/sharedInbox', + 'sharedInbox': 'http://localhost/ap/sharedInbox', }, 'alsoKnownAs': ['https://user.com/'], }