diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index b711dc71..72587e95 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -224,7 +224,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = ` + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -241,7 +241,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { noticeavatar = toot.account.avatar_static } noticeavatar = ` - + ` if (toot.type == 'mention') { var what = lang.lang_parse_mentioned @@ -379,7 +379,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = ` + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -395,7 +395,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } noticeavatar = ` ` var rebtxt = lang.lang_parse_btedsimple var rticon = 'fa-retweet light-blue-text' @@ -436,7 +436,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = ` + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -652,7 +652,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { id="${id}-image-${key2}" data-url="${url}" data-original="${remote_url}" data-type="${media.type}" class="img-parsed img-link" style="width:calc(${cwdt}% - 1px); height:${imh};"> + onerror="this.src=\'../../img/loading.svg\'" title="${escapeHTML(desc)}" alt="${escapeHTML(desc)}" loading="lazy"> ${nsfwmes} ` } @@ -855,7 +855,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = ` + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') content = content.replace(regExp, emoji_url) @@ -875,7 +875,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { var emoji = toot.profile_emojis[keynico] var shortcode = emoji.shortcode var emoji_url = `` + title="${shortcode}" onclick="this.classList.toggle(\'bigemoji\');" loading="lazy">` var regExp = new RegExp(':' + shortcode + ':', 'g') content = content.replace(regExp, emoji_url) spoil = spoil.replace(regExp, emoji_url) @@ -962,7 +962,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { };width:100%; height:0.9rem; font-size:0.8rem;" class="tickers"> + }" style="height:100%;" onerror="this.src=\'../../img/loading.svg\'" loading="lazy"> ${escapeHTML(value.name)} ` break @@ -984,7 +984,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { - +