diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-06 16:30:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-06 16:30:28 +0900 |
| commit | 35552131552d8da8f253244da15f705af8c54b01 (patch) | |
| tree | a3654b3230196d5c659cef2252211b144292ec4a /src | |
| parent | Update photo-stream.vue (diff) | |
| download | misskey-35552131552d8da8f253244da15f705af8c54b01.tar.gz misskey-35552131552d8da8f253244da15f705af8c54b01.tar.bz2 misskey-35552131552d8da8f253244da15f705af8c54b01.zip | |
Resolve #3519
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/renderer/note.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index 1445429ee9..a84925814b 100644 --- a/src/remote/activitypub/renderer/note.ts +++ b/src/remote/activitypub/renderer/note.ts @@ -100,15 +100,19 @@ export default async function renderNote(note: INote, dive = true): Promise<any> text += `\n\n[投票を見る](${url})`; } + let apText = text; + if (note.renoteId != null) { - if (text == null) text = ''; + if (apText == null) apText = ''; const url = `${config.url}/notes/${note.renoteId}`; - text += `\n\nRE: ${url}`; + apText += `\n\nRE: ${url}`; } const summary = note.cw === '' ? String.fromCharCode(0x200B) : note.cw; - const content = toHtml(Object.assign({}, note, { text })); + const content = toHtml(Object.assign({}, note, { + text: apText + })); const emojis = await getEmojis(note.emojis); const apemojis = emojis.map(emoji => renderEmoji(emoji)); |