Fix error of non display_name acct
This commit is contained in:
parent
c4a5d406c7
commit
c7d911451c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user