refactor: adding more fixes from Iceshrimp
Co-authored-by: CookiLover311 <jacoco@vivaldi.net>
This commit is contained in:
parent
f282549900
commit
3e878984bd
3 changed files with 3 additions and 4 deletions
|
@ -327,6 +327,7 @@ export class NoteConverter {
|
|||
),
|
||||
bookmarked: isBookmarked,
|
||||
quote: reblog.then((reblog) => (isQuote(note) ? reblog : null)),
|
||||
quote_id: isQuote(note) ? note.renoteId : null,
|
||||
edited_at: note.updatedAt?.toISOString() ?? null,
|
||||
filtered: filtered,
|
||||
});
|
||||
|
@ -438,9 +439,6 @@ export class NoteConverter {
|
|||
ctx.pinAggregate = pinAggregate;
|
||||
|
||||
const users = notes.filter((p) => !!p.user).map((p) => p.user as User);
|
||||
const renoteUserIds = notes
|
||||
.filter((p) => p.renoteUserId !== null)
|
||||
.map((p) => p.renoteUserId as string);
|
||||
await UserConverter.aggregateData([...users], ctx);
|
||||
await prefetchEmojis(aggregateNoteEmojis(notes));
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace MastodonEntity {
|
|||
pinned: boolean | undefined;
|
||||
reactions: Array<Reaction>;
|
||||
quote: Status | null;
|
||||
quote_id: string | null;
|
||||
bookmarked: boolean;
|
||||
edited_at: string | null;
|
||||
filtered: Array<FilterResult> | null;
|
||||
|
|
|
@ -266,7 +266,7 @@ export class SearchHelpers {
|
|||
generateBlockedUserQuery(query, user);
|
||||
}
|
||||
|
||||
query.setParameter("meId", user);
|
||||
query.setParameter("meId", user.id);
|
||||
|
||||
return query
|
||||
.skip(offset ?? 0)
|
||||
|
|
Loading…
Reference in a new issue