sharedInbox bug fix, needs to be inside endpoints mapping

for #285, https://www.w3.org/TR/activitypub/#endpoints
pull/292/head
Ryan Barrett 2022-11-17 07:42:41 -08:00
rodzic cf57f345d9
commit 023f2aa536
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -100,10 +100,12 @@ def actor(domain):
obj.update({
'preferredUsername': domain,
'inbox': f'{request.host_url}{domain}/inbox',
'sharedInbox': f'{request.host_url}inbox',
'outbox': f'{request.host_url}{domain}/outbox',
'following': f'{request.host_url}{domain}/following',
'followers': f'{request.host_url}{domain}/followers',
'endpoints': {
'sharedInbox': f'{request.host_url}inbox',
},
})
logger.info(f'Returning: {json_dumps(obj, indent=2)}')

Wyświetl plik

@ -175,10 +175,12 @@ class ActivityPubTest(testutil.TestCase):
'id': 'http://localhost/foo.com',
'url': 'http://localhost/r/https://foo.com/about-me',
'inbox': 'http://localhost/foo.com/inbox',
'sharedInbox': 'http://localhost/inbox',
'outbox': 'http://localhost/foo.com/outbox',
'following': 'http://localhost/foo.com/following',
'followers': 'http://localhost/foo.com/followers',
'endpoints': {
'sharedInbox': 'http://localhost/inbox',
},
'publicKey': {
'id': 'http://localhost/foo.com',
'owner': 'http://localhost/foo.com',