X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Furl.ts;h=5705afbd62ff8ebdbe938439fe406205b47ad216;hb=4ba3b8ea1be85d95a508ac479f26b96ceea15971;hp=729bb8dda446a8376a2a2be10e548eebdc83261e;hpb=bf1f650817dadfd5eeee9e5e0b6b6938c136e25d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index 729bb8dda..5705afbd6 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts @@ -10,7 +10,7 @@ function getVideoActivityPubUrl (video: VideoModel) { } function getVideoCommentActivityPubUrl (video: VideoModel, videoComment: VideoCommentModel) { - return CONFIG.WEBSERVER.URL + '/videos/watch/' + video.uuid + '#comment-' + videoComment.id + return CONFIG.WEBSERVER.URL + '/videos/watch/' + video.uuid + '/comments/' + videoComment.id } function getVideoChannelActivityPubUrl (videoChannelUUID: string) { @@ -18,7 +18,7 @@ function getVideoChannelActivityPubUrl (videoChannelUUID: string) { } function getAccountActivityPubUrl (accountName: string) { - return CONFIG.WEBSERVER.URL + '/account/' + accountName + return CONFIG.WEBSERVER.URL + '/accounts/' + accountName } function getVideoAbuseActivityPubUrl (videoAbuse: VideoAbuseModel) { @@ -55,6 +55,10 @@ function getAnnounceActivityPubUrl (originalUrl: string, byActor: ActorModel) { return originalUrl + '/announces/' + byActor.id } +function getDeleteActivityPubUrl (originalUrl: string) { + return originalUrl + '/delete' +} + function getUpdateActivityPubUrl (originalUrl: string, updatedAt: string) { return originalUrl + '/updates/' + updatedAt } @@ -76,5 +80,6 @@ export { getVideoViewActivityPubUrl, getVideoLikeActivityPubUrl, getVideoDislikeActivityPubUrl, - getVideoCommentActivityPubUrl + getVideoCommentActivityPubUrl, + getDeleteActivityPubUrl }