aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/process
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-01-14 10:24:49 +0100
committerChocobozzz <me@florianbigard.com>2019-01-14 10:24:49 +0100
commitb4593cd7ff34b94b60f6bfa0b57e371d74d63aa2 (patch)
tree06316fd7fa61778d14f2b3fed2d4e5b51468822e /server/lib/activitypub/process
parent7b95f31385eca59ac18197539de30268acc18986 (diff)
downloadPeerTube-b4593cd7ff34b94b60f6bfa0b57e371d74d63aa2.tar.gz
PeerTube-b4593cd7ff34b94b60f6bfa0b57e371d74d63aa2.tar.zst
PeerTube-b4593cd7ff34b94b60f6bfa0b57e371d74d63aa2.zip
Warn user when they want to delete a channel
Because they will not be able to create another channel with the same actor name
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r--server/lib/activitypub/process/process.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/process/process.ts b/server/lib/activitypub/process/process.ts
index bcc5cac7a..2479d5da2 100644
--- a/server/lib/activitypub/process/process.ts
+++ b/server/lib/activitypub/process/process.ts
@@ -35,7 +35,7 @@ async function processActivities (
35 const actorsCache: { [ url: string ]: ActorModel } = {} 35 const actorsCache: { [ url: string ]: ActorModel } = {}
36 36
37 for (const activity of activities) { 37 for (const activity of activities) {
38 if (!options.signatureActor && [ 'Create', 'Announce', 'Like' ].indexOf(activity.type) === -1) { 38 if (!options.signatureActor && [ 'Create', 'Announce', 'Like' ].includes(activity.type) === false) {
39 logger.error('Cannot process activity %s (type: %s) without the actor signature.', activity.id, activity.type) 39 logger.error('Cannot process activity %s (type: %s) without the actor signature.', activity.id, activity.type)
40 continue 40 continue
41 } 41 }