From 8cca6e99020918db912c4471d45817ddecfcb8e6 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 19 Dec 2018 05:07:54 +0900 Subject: [PATCH] Send original URL for quote (#3668) --- src/remote/activitypub/renderer/note.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index a84925814..4bb2281da 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -102,10 +102,9 @@ export default async function renderNote(note: INote, dive = true): Promise let apText = text; - if (note.renoteId != null) { + if (quote) { if (apText == null) apText = ''; - const url = `${config.url}/notes/${note.renoteId}`; - apText += `\n\nRE: ${url}`; + apText += `\n\nRE: ${quote}`; } const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;