mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
[mastodon-client] Fix html cache prewarm not including quote uris
This commit is contained in:
parent
30631418d9
commit
aaed62bde1
@ -364,6 +364,10 @@ export class NoteConverter {
|
|||||||
const identifier = `${note.id}:${(note.updatedAt ?? note.createdAt).getTime()}`;
|
const identifier = `${note.id}:${(note.updatedAt ?? note.createdAt).getTime()}`;
|
||||||
if (await this.noteContentHtmlCache.get(identifier) !== undefined) return;
|
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
|
const quoteUri = note.renote
|
||||||
? isQuote(note)
|
? isQuote(note)
|
||||||
? (note.renote.url ?? note.renote.uri ?? `${config.url}/notes/${note.renote.id}`)
|
? (note.renote.url ?? note.renote.uri ?? `${config.url}/notes/${note.renote.id}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user