mirror of
https://github.com/byulmaru/quesdon
synced 2024-11-27 14:28:04 +09:00
hum :thinking_face:
This commit is contained in:
parent
eae0701c25
commit
1688d370f1
@ -44,7 +44,8 @@ export class PageMyFollowers extends React.Component<{}, State> {
|
||||
return "読み込みに失敗しました。再度お試しください (" + code + ")"
|
||||
}
|
||||
this.setState({loading: true})
|
||||
const req = await apiFetch("/api/web/accounts/followers" + (this.state.maxId ? "?max_id=" + this.state.maxId : ""))
|
||||
const param = this.state.maxId ? "?max_id=" + this.state.maxId : ""
|
||||
const req = await apiFetch("/api/web/accounts/followers" + param)
|
||||
.catch((e) => {
|
||||
alert(errorMsg(-1))
|
||||
this.setState({
|
||||
|
@ -31,8 +31,9 @@ router.get("/followers", async (ctx) => {
|
||||
Authorization: "Bearer " + user!.accessToken,
|
||||
},
|
||||
}).then((r) => r.json())
|
||||
const param = ctx.query.max_id ? "&max_id=" + ctx.query.max_id : ""
|
||||
const followersRes = await fetch(
|
||||
`${instanceUrl}/api/v1/accounts/${myInfo.id}/followers?limit=80` + (ctx.query.max_id ? "&max_id=" + ctx.query.max_id : ""),
|
||||
`${instanceUrl}/api/v1/accounts/${myInfo.id}/followers?limit=80${param}`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: "Bearer " + user!.accessToken,
|
||||
|
Loading…
Reference in New Issue
Block a user