Revert "refactor: 可読性のため一部でArray.prototype.atを使うように" (#115)

* Revert "refactor: 可読性のため一部で`Array.prototype.at`を使うように (#11274)"

This reverts commit 2b6dbd4fcb.

* Apply suggestions from code review

---------

Co-authored-by: okayurisotto <okayurisotto@proton.me>
This commit is contained in:
まっちゃとーにゅ 2023-07-25 19:58:08 +09:00 committed by GitHub
parent 3bde1b398a
commit 1e6389d990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 36 additions and 38 deletions

View file

@ -181,7 +181,7 @@ export class ActivityPubServerService {
undefined,
inStock ? `${partOf}?${url.query({
page: 'true',
cursor: followings.at(-1)!.id,
cursor: followings[followings.length - 1].id,
})}` : undefined,
);
@ -273,7 +273,7 @@ export class ActivityPubServerService {
undefined,
inStock ? `${partOf}?${url.query({
page: 'true',
cursor: followings.at(-1)!.id,
cursor: followings[followings.length - 1].id,
})}` : undefined,
);
@ -398,7 +398,7 @@ export class ActivityPubServerService {
})}` : undefined,
notes.length ? `${partOf}?${url.query({
page: 'true',
until_id: notes.at(-1)!.id,
until_id: notes[notes.length - 1].id,
})}` : undefined,
);