From 5f22d2427e1dfd852638a7799810898460d6b73e Mon Sep 17 00:00:00 2001 From: Cutls Date: Wed, 29 May 2019 23:13:38 +0900 Subject: [PATCH] Fix: Pleroma image unshown --- app/js/tl/parse.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index af46e54e..a22c344f 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -236,9 +236,9 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { var icon = "fa-tasks purple-text"; } var noticetext = '' + date(toot.created_at, - datetype) + + '\',\'' + tlid + '\');" title="' + lang.lang_parse_notffilter + '">' + date(toot.created_at, + datetype) + '' + dis_name + "(@" + toot.account.acct + @@ -594,14 +594,12 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { var sense = "" var blur = null } - if (media.pleroma) { - if (media.pleroma.mime_type.indexOf("video") !== -1) { + if (media.pleroma && media.pleroma.mime_type.indexOf("video") !== -1) { viewer = viewer + ''; - } } else { if (media.type == "unknown") { viewer = viewer + '[' + lang.lang_parse_unknown + '] '