summaryrefslogtreecommitdiff
path: root/routes.js
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 19:03:42 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2019-12-11 19:03:42 -0800
commit51b42d13a370a9a79a618742c62de42c6cb666d8 (patch)
treeb283ef8759e12c9959b8417a37e3589c27704b66 /routes.js
parent1157143d851ad53a095d7047e0a8d53c085bddd4 (diff)
Fixing federation bug
Diffstat (limited to 'routes.js')
-rwxr-xr-xroutes.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/routes.js b/routes.js
index c04077b..e442e1a 100755
--- a/routes.js
+++ b/routes.js
@@ -148,15 +148,15 @@ function createActivityPubActor(eventID, domain, pubkey) {
'https://w3id.org/security/v1'
],
- 'id': `https://${domain}/u/${eventID}`,
+ 'id': `https://${domain}/${eventID}`,
'type': 'Person',
- 'preferredUsereventID': `${eventID}`,
+ 'preferredUsername': `${eventID}`,
'inbox': `https://${domain}/api/inbox`,
- 'followers': `https://${domain}/u/${eventID}/followers`,
+ 'followers': `https://${domain}/${eventID}/followers`,
'publicKey': {
- 'id': `https://${domain}/u/${eventID}#main-key`,
- 'owner': `https://${domain}/u/${eventID}`,
+ 'id': `https://${domain}/${eventID}#main-key`,
+ 'owner': `https://${domain}/${eventID}`,
'publicKeyPem': pubkey
}
});