kopia lustrzana https://github.com/snarfed/bridgy-fed
sharedInbox bug fix, needs to be inside endpoints mapping
for #285, https://www.w3.org/TR/activitypub/#endpointspull/292/head
rodzic
cf57f345d9
commit
023f2aa536
|
@ -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)}')
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue