1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 13:48:12 +09:00

Send original URL for quote (#3668)

This commit is contained in:
MeiMei 2018-12-19 05:07:54 +09:00 committed by syuilo
parent 0fed33bfdb
commit 5417e40f59

View File

@ -102,10 +102,9 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
let apText = text; let apText = text;
if (note.renoteId != null) { if (quote) {
if (apText == null) apText = ''; if (apText == null) apText = '';
const url = `${config.url}/notes/${note.renoteId}`; apText += `\n\nRE: ${quote}`;
apText += `\n\nRE: ${url}`;
} }
const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw; const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw;