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 + '] '