use new attachment redacted thumbnail

This commit is contained in:
towards-a-new-leftypol 2024-12-29 10:48:40 +00:00
parent 814b1779b4
commit 49c8a92c51
1 changed files with 5 additions and 1 deletions

View File

@ -520,7 +520,11 @@ function mkSpamImgElement(img_description) {
console.log('img_description.illegal', img_description.illegal); console.log('img_description.illegal', img_description.illegal);
if (illegal) { if (illegal) {
thumb_url = "/static/image_redacted.jpg"; if (mime.startsWith("image")) {
thumb_url = "/static/image_redacted.jpg";
} else {
thumb_url = "/static/attachment_redacted.jpg";
}
} else if (MIME_THUMBNAILS[mime] != null) { } else if (MIME_THUMBNAILS[mime] != null) {
thumb_url = MIME_THUMBNAILS[mime]; thumb_url = MIME_THUMBNAILS[mime];
} else { } else {