This commit is contained in:
cutls 2020-09-09 20:54:07 +09:00
parent e11af25ba6
commit 82c5a853cb

View File

@ -204,7 +204,7 @@ function flw(user, more, acct_id) {
let link let link
if (linkHeader) { if (linkHeader) {
console.log(linkHeader) console.log(linkHeader)
link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{}
console.log(link) console.log(link)
} }
$("#his-follow-list-contents").attr('max-id', link) $("#his-follow-list-contents").attr('max-id', link)
@ -313,7 +313,7 @@ function fer(user, more, acct_id) {
let link let link
if (linkHeader) { if (linkHeader) {
console.log(linkHeader) console.log(linkHeader)
link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{}
console.log(link) console.log(link)
} }
$("#his-follower-list-contents").attr('max-id', link) $("#his-follower-list-contents").attr('max-id', link)
@ -354,7 +354,7 @@ function fer(user, more, acct_id) {
let link let link
if (linkHeader) { if (linkHeader) {
console.log(linkHeader) console.log(linkHeader)
link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{}
console.log(link) console.log(link)
} }
$("#his-follower-list-contents").attr('max-id', link) $("#his-follower-list-contents").attr('max-id', link)
@ -403,7 +403,7 @@ function showFav(more, acct_id) {
let link let link
if (linkHeader) { if (linkHeader) {
console.log(linkHeader) console.log(linkHeader)
link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] try {link = linkHeader.match(/[?&]{1}max_id=([0-9]+)/)[1] }catch{}
console.log(link) console.log(link)
} }
var template = parse(json, "", acct_id, "user") var template = parse(json, "", acct_id, "user")