Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
0f58b11f
Verified
Commit
0f58b11f
authored
Jul 25, 2022
by
Chocobozzz
Browse files
Reduce joins need to generate AP url
parent
3efa4da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/activitypub/url.ts
View file @
0f58b11f
...
...
@@ -3,7 +3,7 @@ import {
MAbuseFull
,
MAbuseId
,
MActor
,
MActorFollow
Actors
,
MActorFollow
,
MActorId
,
MActorUrl
,
MCommentId
,
...
...
@@ -92,7 +92,7 @@ function getLocalActorFollowActivityPubUrl (follower: MActor, following: MActorI
return
follower
.
url
+
'
/follows/
'
+
following
.
id
}
function
getLocalActorFollowAcceptActivityPubUrl
(
actorFollow
:
MActorFollow
Actors
)
{
function
getLocalActorFollowAcceptActivityPubUrl
(
actorFollow
:
MActorFollow
)
{
return
WEBSERVER
.
URL
+
'
/accepts/follows/
'
+
actorFollow
.
id
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment