use new attachment redacted thumbnail
This commit is contained in:
parent
814b1779b4
commit
49c8a92c51
|
@ -520,7 +520,11 @@ function mkSpamImgElement(img_description) {
|
|||
console.log('img_description.illegal', img_description.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) {
|
||||
thumb_url = MIME_THUMBNAILS[mime];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue