1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-15 15:18:22 +09:00

投票未対応インスタンス向けメッセージをわかりやすくする (#3944)

* Poll message

* fix

* fix

* とりあえず日本語にしちゃう

* TODO

* fix
This commit is contained in:
MeiMei 2019-01-21 16:34:17 +09:00 committed by syuilo
parent 0bdcb15b3b
commit 5b32b900e4

View File

@ -98,7 +98,7 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
if (text == null) text = ''; if (text == null) text = '';
const url = `${config.url}/notes/${note._id}`; const url = `${config.url}/notes/${note._id}`;
// TODO: i18n // TODO: i18n
text += `\n\n[リモートで投票を見る](${url})`; text += `\n[リモートで結果を表示](${url})`;
question = `${config.url}/questions/${note._id}`; 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 // Provides choices as text for AP
if (note.poll != null) { if (note.poll != null) {
const cs = note.poll.choices.map(c => `${c.id}: ${c.text}`); const cs = note.poll.choices.map(c => `${c.id}: ${c.text}`);
apText += '\n'; apText += '\n----------------------------------------\n';
apText += cs.join('\n'); apText += cs.join('\n');
apText += '\n----------------------------------------\n';
apText += '番号を返信して投票';
} }
if (quote) { if (quote) {