Skip to content

Commit

Permalink
activitypub.actor: put sharedInbox on actor id's domain
Browse files Browse the repository at this point in the history
for #1570
  • Loading branch information
snarfed committed Dec 15, 2024
1 parent 46a66c5 commit 6ba481c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activitypub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
},
})

Expand Down
2 changes: 1 addition & 1 deletion tests/test_activitypub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'],
}
Expand Down

0 comments on commit 6ba481c

Please sign in to comment.