diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-12-19 05:07:54 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-12-19 05:07:54 +0900 |
| commit | 5417e40f59ff8fe85c4b1ebe2ba41ebd58af83a7 (patch) | |
| tree | acb85f9ae2d3d3bf0d27abb1046ce63fb96dc597 /src/remote | |
| parent | Create PULL_REQUEST_TEMPLATE.md (#3552) (diff) | |
| download | sharkey-5417e40f59ff8fe85c4b1ebe2ba41ebd58af83a7.tar.gz sharkey-5417e40f59ff8fe85c4b1ebe2ba41ebd58af83a7.tar.bz2 sharkey-5417e40f59ff8fe85c4b1ebe2ba41ebd58af83a7.zip | |
Send original URL for quote (#3668)
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/renderer/note.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts index a84925814b..4bb2281dad 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<any> 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; |