mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[mastodon-client] Fix html cache prewarm not including quote uris
This commit is contained in:
parent
30631418d9
commit
aaed62bde1
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,10 @@ export class NoteConverter {
|
|||
const identifier = `${note.id}:${(note.updatedAt ?? note.createdAt).getTime()}`;
|
||||
if (await this.noteContentHtmlCache.get(identifier) !== undefined) return;
|
||||
|
||||
if (note.renoteId !== null && !note.renote) {
|
||||
note.renote = await Notes.findOneBy({ id: note.renoteId });
|
||||
}
|
||||
|
||||
const quoteUri = note.renote
|
||||
? isQuote(note)
|
||||
? (note.renote.url ?? note.renote.uri ?? `${config.url}/notes/${note.renote.id}`)
|
||||
|
|
Loading…
Reference in a new issue