Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix process delete promise return

Chocobozzz9cc4b9c61f4c
diff --git a/server/lib/activitypub/process/process-delete.ts b/server/lib/activitypub/process/process-delete.ts
index 20214246c3..44f6a87b06 100644
--- a/server/lib/activitypub/process/process-delete.ts
+++ b/server/lib/activitypub/process/process-delete.ts
@@ -130,7 +130,7 @@ async function processDeleteVideoChannel (videoChannelToRemove: MChannelActor) {
function processDeleteVideoComment (byActor: MActorSignature, videoComment: MCommentOwnerVideo, activity: ActivityDelete) {
// Already deleted
- if (videoComment.isDeleted()) return
+ if (videoComment.isDeleted()) return Promise.resolve()
logger.debug('Removing remote video comment "%s".', videoComment.url)