diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-23 11:38:18 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-23 11:38:18 +0200 |
commit | b2a70e3ca2611a8831b6e490cc25dbf3066562c0 (patch) | |
tree | b07d2effb206ad3fd1d39002b69c5cc20d862b5b /server/lib/activitypub/process | |
parent | b569b2c607bec0e671228131a5b1fe6ddf9717a0 (diff) | |
download | PeerTube-b2a70e3ca2611a8831b6e490cc25dbf3066562c0.tar.gz PeerTube-b2a70e3ca2611a8831b6e490cc25dbf3066562c0.tar.zst PeerTube-b2a70e3ca2611a8831b6e490cc25dbf3066562c0.zip |
Support refusing remote comments
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-create.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 76ed37aae..1e6e8956c 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts | |||
@@ -109,8 +109,10 @@ async function processCreateVideoComment (activity: ActivityCreate, byActor: MAc | |||
109 | let video: MVideoAccountLightBlacklistAllFiles | 109 | let video: MVideoAccountLightBlacklistAllFiles |
110 | let created: boolean | 110 | let created: boolean |
111 | let comment: MCommentOwnerVideo | 111 | let comment: MCommentOwnerVideo |
112 | |||
112 | try { | 113 | try { |
113 | const resolveThreadResult = await resolveThread({ url: commentObject.id, isVideo: false }) | 114 | const resolveThreadResult = await resolveThread({ url: commentObject.id, isVideo: false }) |
115 | if (!resolveThreadResult) return // Comment not accepted | ||
114 | 116 | ||
115 | video = resolveThreadResult.video | 117 | video = resolveThreadResult.video |
116 | created = resolveThreadResult.commentCreated | 118 | created = resolveThreadResult.commentCreated |