forked from FoundKeyGang/FoundKey
投票未対応インスタンス向けメッセージをわかりやすくする (#3944)
* Poll message * fix * fix * とりあえず日本語にしちゃう * TODO * fix
This commit is contained in:
parent
0bdcb15b3b
commit
5b32b900e4
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue