mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
投票未対応インスタンス向けメッセージをわかりやすくする (#3944)
* Poll message * fix * fix * とりあえず日本語にしちゃう * TODO * fix
This commit is contained in:
parent
ee427c60a0
commit
31d7e15caa
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user