mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
perf(server): reduce db query
This commit is contained in:
parent
ee78936890
commit
161461f352
1 changed files with 1 additions and 3 deletions
|
@ -53,9 +53,7 @@ export default async function renderNote(note: Note, dive = true, isTalk = false
|
|||
}
|
||||
}
|
||||
|
||||
const user = await Users.findOneOrFail(note.userId);
|
||||
|
||||
const attributedTo = `${config.url}/users/${user.id}`;
|
||||
const attributedTo = `${config.url}/users/${note.userId}`;
|
||||
|
||||
const mentions = (JSON.parse(note.mentionedRemoteUsers) as IMentionedRemoteUsers).map(x => x.uri);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue