From 9bdf24d3a56b67b694b4ee01890b262d97ea6a24 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Tue, 14 Jun 2022 13:18:54 +0200 Subject: [PATCH] enhance: add tag for quotes Ref: FEP-e232 --- .../backend/src/remote/activitypub/renderer/note.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/backend/src/remote/activitypub/renderer/note.ts b/packages/backend/src/remote/activitypub/renderer/note.ts index 0d53cfe5e..6fd50c158 100644 --- a/packages/backend/src/remote/activitypub/renderer/note.ts +++ b/packages/backend/src/remote/activitypub/renderer/note.ts @@ -111,6 +111,16 @@ export default async function renderNote(note: Note, dive = true, isTalk = false ...apemojis, ]; + if (quote) { + tag.push({ + type: 'Link', + mediaType: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', + href: quote, + name: `RE: ${quote}`, + rel: 'https://misskey-hub.net/ns#_misskey_quote', + }); + } + const asPoll = poll ? { type: 'Question', content: await toHtml(text, note.mentions),