aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-25 11:26:27 +0200
committerChocobozzz <me@florianbigard.com>2022-07-27 13:52:13 +0200
commit0f58b11f5cace6e57cab5b4a18380eb297b43fe4 (patch)
tree32a46d14ca28ed74ec00765284715f60f55f37b6 /server/lib/activitypub
parent3efa4da1fef44400931c3db47dc27a92da77062e (diff)
downloadPeerTube-0f58b11f5cace6e57cab5b4a18380eb297b43fe4.tar.gz
PeerTube-0f58b11f5cace6e57cab5b4a18380eb297b43fe4.tar.zst
PeerTube-0f58b11f5cace6e57cab5b4a18380eb297b43fe4.zip
Reduce joins need to generate AP url
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/url.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts
index 2c32ba056..5cdac71bf 100644
--- a/server/lib/activitypub/url.ts
+++ b/server/lib/activitypub/url.ts
@@ -3,7 +3,7 @@ import {
3 MAbuseFull, 3 MAbuseFull,
4 MAbuseId, 4 MAbuseId,
5 MActor, 5 MActor,
6 MActorFollowActors, 6 MActorFollow,
7 MActorId, 7 MActorId,
8 MActorUrl, 8 MActorUrl,
9 MCommentId, 9 MCommentId,
@@ -92,7 +92,7 @@ function getLocalActorFollowActivityPubUrl (follower: MActor, following: MActorI
92 return follower.url + '/follows/' + following.id 92 return follower.url + '/follows/' + following.id
93} 93}
94 94
95function getLocalActorFollowAcceptActivityPubUrl (actorFollow: MActorFollowActors) { 95function getLocalActorFollowAcceptActivityPubUrl (actorFollow: MActorFollow) {
96 return WEBSERVER.URL + '/accepts/follows/' + actorFollow.id 96 return WEBSERVER.URL + '/accepts/follows/' + actorFollow.id
97} 97}
98 98