diff options
-rw-r--r-- | server/models/abuse/abuse.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/abuse/abuse.ts b/server/models/abuse/abuse.ts index de249d211..262f364f1 100644 --- a/server/models/abuse/abuse.ts +++ b/server/models/abuse/abuse.ts | |||
@@ -434,10 +434,10 @@ export class AbuseModel extends Model { | |||
434 | } | 434 | } |
435 | 435 | ||
436 | buildBaseVideoCommentAbuse (this: MAbuseUserFormattable) { | 436 | buildBaseVideoCommentAbuse (this: MAbuseUserFormattable) { |
437 | if (!this.VideoCommentAbuse) return null | 437 | // Associated video comment could have been destroyed if the video has been deleted |
438 | if (!this.VideoCommentAbuse || !this.VideoCommentAbuse.VideoComment) return null | ||
438 | 439 | ||
439 | const abuseModel = this.VideoCommentAbuse | 440 | const entity = this.VideoCommentAbuse.VideoComment |
440 | const entity = abuseModel.VideoComment | ||
441 | 441 | ||
442 | return { | 442 | return { |
443 | id: entity.id, | 443 | id: entity.id, |