Skip to content
Snippets Groups Projects
Commit 21de5c4a authored by syuilo's avatar syuilo
Browse files

perf(server): reduce db query

parent 131ff24e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment