TLにトゥートがない場合は続きを読み込まない

This commit is contained in:
abcang 2018-08-16 13:14:48 +09:00 committed by GitHub
parent 621a1f3797
commit d880d1989d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,7 @@ function moreload(type, tlid) {
var data=obj[tlid].data; var data=obj[tlid].data;
} }
var sid = $("#timeline_" + tlid + " .cvo").last().attr("unique-id"); var sid = $("#timeline_" + tlid + " .cvo").last().attr("unique-id");
if (localStorage.getItem("morelock") != sid) { if (sid && localStorage.getItem("morelock") != sid) {
localStorage.setItem("morelock", sid); localStorage.setItem("morelock", sid);
if (type == "mix" && localStorage.getItem("domain_" + acct_id)!="misskey.xyz") { if (type == "mix" && localStorage.getItem("domain_" + acct_id)!="misskey.xyz") {
mixmore(tlid,"integrated"); mixmore(tlid,"integrated");
@ -555,4 +555,4 @@ function icon(type) {
}else if (type == "mix") { }else if (type == "mix") {
return "share" return "share"
} }
} }