enhance: add tag for quotes

Ref: FEP-e232
This commit is contained in:
Johann150 2022-06-14 13:18:54 +02:00
parent 7170b86724
commit 9bdf24d3a5
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -111,6 +111,16 @@ export default async function renderNote(note: Note, dive = true, isTalk = false
...apemojis, ...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 ? { const asPoll = poll ? {
type: 'Question', type: 'Question',
content: await toHtml(text, note.mentions), content: await toHtml(text, note.mentions),