Skip to content

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

Fix invalid guard

Chocobozzz4e8470fcfe2d
diff --git a/server/core/models/video/sql/video/shared/video-model-builder.ts b/server/core/models/video/sql/video/shared/video-model-builder.ts
index 4837ca2d00..d39d1acea2 100644
--- a/server/core/models/video/sql/video/shared/video-model-builder.ts
+++ b/server/core/models/video/sql/video/shared/video-model-builder.ts
@@ -454,7 +454,7 @@ export class VideoModelBuilder {
private setBlockedServer (row: SQLRow, videoModel: VideoModel) {
const id = row['VideoChannel.Account.Actor.Server.ServerBlocklist.id']
- if (!id || this.serverBlocklistDone.has(id)) return
+ if (!id) return
const key = `${videoModel.id}-${id}`
if (this.serverBlocklistDone.has(key)) return