summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-01-21 16:34:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-01-21 16:34:17 +0900
commit5b32b900e4df3a4868f23ffe74ebbb824227e29a (patch)
tree9bcbe08b27f68df7fc3277d164f66f339c2a0dde /src/remote/activitypub/renderer
parentRe: Fix routing (diff)
downloadsharkey-5b32b900e4df3a4868f23ffe74ebbb824227e29a.tar.gz
sharkey-5b32b900e4df3a4868f23ffe74ebbb824227e29a.tar.bz2
sharkey-5b32b900e4df3a4868f23ffe74ebbb824227e29a.zip
投票未対応インスタンス向けメッセージをわかりやすくする (#3944)
* Poll message * fix * fix * とりあえず日本語にしちゃう * TODO * fix
Diffstat (limited to 'src/remote/activitypub/renderer')
-rw-r--r--src/remote/activitypub/renderer/note.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts
index 190e01838b..910e4dba76 100644
--- a/src/remote/activitypub/renderer/note.ts
+++ b/src/remote/activitypub/renderer/note.ts
@@ -98,7 +98,7 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
if (text == null) text = '';
const url = `${config.url}/notes/${note._id}`;
// TODO: i18n
- text += `\n\n[リモートで投票を見る](${url})`;
+ text += `\n[リモートで結果を表示](${url})`;
question = `${config.url}/questions/${note._id}`;
}
@@ -109,8 +109,10 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
// Provides choices as text for AP
if (note.poll != null) {
const cs = note.poll.choices.map(c => `${c.id}: ${c.text}`);
- apText += '\n';
+ apText += '\n----------------------------------------\n';
apText += cs.join('\n');
+ apText += '\n----------------------------------------\n';
+ apText += '番号を返信して投票';
}
if (quote) {