X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Furl.ts;h=5705afbd62ff8ebdbe938439fe406205b47ad216;hb=4ba3b8ea1be85d95a508ac479f26b96ceea15971;hp=0d76922e043244aec73c40a929d12439713298a6;hpb=c5911fd347c76e8bdc05ea9f3ee9efed4a58c236;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index 0d76922e0..5705afbd6 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts @@ -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 }