aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/url.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-04 16:56:36 +0100
committerChocobozzz <me@florianbigard.com>2018-01-04 16:56:36 +0100
commitc3badc81fe3d78601fb278a7f28eeed63060d300 (patch)
treee060a547202d6a3422dc738c6cb02fb5c15f141f /server/lib/activitypub/url.ts
parentbb82394c0d41cc939a35782e50ce908c92e3ecfe (diff)
downloadPeerTube-c3badc81fe3d78601fb278a7f28eeed63060d300.tar.gz
PeerTube-c3badc81fe3d78601fb278a7f28eeed63060d300.tar.zst
PeerTube-c3badc81fe3d78601fb278a7f28eeed63060d300.zip
Fix delete activities
Diffstat (limited to 'server/lib/activitypub/url.ts')
-rw-r--r--server/lib/activitypub/url.ts7
1 files changed, 6 insertions, 1 deletions
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) {
55 return originalUrl + '/announces/' + byActor.id 55 return originalUrl + '/announces/' + byActor.id
56} 56}
57 57
58function getDeleteActivityPubUrl (originalUrl: string) {
59 return originalUrl + '/delete'
60}
61
58function getUpdateActivityPubUrl (originalUrl: string, updatedAt: string) { 62function getUpdateActivityPubUrl (originalUrl: string, updatedAt: string) {
59 return originalUrl + '/updates/' + updatedAt 63 return originalUrl + '/updates/' + updatedAt
60} 64}
@@ -76,5 +80,6 @@ export {
76 getVideoViewActivityPubUrl, 80 getVideoViewActivityPubUrl,
77 getVideoLikeActivityPubUrl, 81 getVideoLikeActivityPubUrl,
78 getVideoDislikeActivityPubUrl, 82 getVideoDislikeActivityPubUrl,
79 getVideoCommentActivityPubUrl 83 getVideoCommentActivityPubUrl,
84 getDeleteActivityPubUrl
80} 85}