accounts: remove unecessary sort call

This commit is contained in:
Alex Gleason 2023-08-29 15:29:12 -05:00
parent d01dbcbfee
commit ad823e587a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { getAuthor, getFollows, syncUser } from '@/queries.ts';
import { booleanParamSchema } from '@/schema.ts'; import { booleanParamSchema } from '@/schema.ts';
import { jsonMetaContentSchema } from '@/schemas/nostr.ts'; import { jsonMetaContentSchema } from '@/schemas/nostr.ts';
import { toAccount, toRelationship, toStatus } from '@/transformers/nostr-to-mastoapi.ts'; import { toAccount, toRelationship, toStatus } from '@/transformers/nostr-to-mastoapi.ts';
import { eventDateComparator, isFollowing, lookupAccount } from '@/utils.ts'; import { isFollowing, lookupAccount } from '@/utils.ts';
import { paginated, paginationSchema, parseBody } from '@/utils/web.ts'; import { paginated, paginationSchema, parseBody } from '@/utils/web.ts';
import { createEvent } from '@/utils/web.ts'; import { createEvent } from '@/utils/web.ts';
@ -103,7 +103,6 @@ const accountStatusesController: AppController = async (c) => {
} }
let events = await mixer.getFilters([filter]); let events = await mixer.getFilters([filter]);
events.sort(eventDateComparator);
if (exclude_replies) { if (exclude_replies) {
events = events.filter((event) => !findReplyTag(event)); events = events.filter((event) => !findReplyTag(event));