Fix error of non display_name acct

This commit is contained in:
cutls 2019-10-09 23:00:25 +09:00
parent c4a5d406c7
commit c7d911451c

View File

@ -196,7 +196,12 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
var dmid = toot.id; var dmid = toot.id;
toot = toot.last_status; toot = toot.last_status;
} }
if(toot.account.display_name){
var dis_name = escapeHTML(toot.account.display_name); var dis_name = escapeHTML(toot.account.display_name);
}else{
var dis_name = toot.account.acct;
}
if (toot.account.emojis) { if (toot.account.emojis) {
var actemojick = toot.account.emojis[0]; var actemojick = toot.account.emojis[0];
} else { } else {