fix: 🐛 Don't show image previews if NSFW

Closes #9636
This commit is contained in:
ThatOneCalculator 2023-02-18 12:02:25 -08:00
parent 8f2ae33511
commit de17a10bb6
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -23,7 +23,7 @@ block og
meta(property='og:description' content= summary)
meta(property='og:url' content= url)
meta(property='og:image' content= imageUrl)
if isImage
if isImage && !note.files[0].isSensitive
meta(property='og:image:width' content=note.files[0].properties.width)
meta(property='og:image:height' content=note.files[0].properties.height)
meta(property='og:image:type' content=note.files[0].type)