X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fabuse%2Fabuse.ts;h=4c6a96a86d3f882c0afd06ca5035aa2118d8f3d9;hb=77239b425a8e00822a53c9907415832a473c3eb6;hp=4344df006ebb810dbf42a74ce0aaeda2907df1e9;hpb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/abuse/abuse.ts b/server/models/abuse/abuse.ts index 4344df006..4c6a96a86 100644 --- a/server/models/abuse/abuse.ts +++ b/server/models/abuse/abuse.ts @@ -436,7 +436,7 @@ export class AbuseModel extends Model>> { buildBaseVideoCommentAbuse (this: MAbuseUserFormattable) { // Associated video comment could have been destroyed if the video has been deleted - if (!this.VideoCommentAbuse || !this.VideoCommentAbuse.VideoComment) return null + if (!this.VideoCommentAbuse?.VideoComment) return null const entity = this.VideoCommentAbuse.VideoComment @@ -563,6 +563,7 @@ export class AbuseModel extends Model>> { return { type: 'Flag' as 'Flag', content: this.reason, + mediaType: 'text/markdown', object, tag: predefinedReasons.map(r => ({ type: 'Hashtag' as 'Hashtag',