summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-06 13:53:32 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:03:02 -0400
commit5a99e74ee3630270cff7e4c9f24c0e2376821b81 (patch)
tree57d564b9aacfc24593120942c5e1360b365623f5 /packages
parentadd fep-044f "quote" to context and model (diff)
downloadsharkey-5a99e74ee3630270cff7e4c9f24c0e2376821b81.tar.gz
sharkey-5a99e74ee3630270cff7e4c9f24c0e2376821b81.tar.bz2
sharkey-5a99e74ee3630270cff7e4c9f24c0e2376821b81.zip
render fep-044f "quote" in notes
Diffstat (limited to 'packages')
-rw-r--r--packages/backend/src/core/activitypub/ApRendererService.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts
index 46a78687f3..079023284b 100644
--- a/packages/backend/src/core/activitypub/ApRendererService.ts
+++ b/packages/backend/src/core/activitypub/ApRendererService.ts
@@ -419,7 +419,7 @@ export class ApRendererService {
inReplyTo = null;
}
- let quote;
+ let quote: string | undefined = undefined;
if (note.renoteId) {
const renote = await this.notesRepository.findOneBy({ id: note.renoteId });
@@ -537,6 +537,7 @@ export class ApRendererService {
_misskey_quote: quote,
quoteUrl: quote,
quoteUri: quote,
+ quote: quote,
published: this.idService.parse(note.id).date.toISOString(),
to,
cc,
@@ -774,7 +775,7 @@ export class ApRendererService {
inReplyTo = null;
}
- let quote;
+ let quote: string | undefined = undefined;
if (note.renoteId) {
const renote = await this.notesRepository.findOneBy({ id: note.renoteId });
@@ -886,6 +887,7 @@ export class ApRendererService {
_misskey_quote: quote,
quoteUrl: quote,
quoteUri: quote,
+ quote: quote,
published: this.idService.parse(note.id).date.toISOString(),
to,
cc,