Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
e8177ee311
22 changed files with 395 additions and 176 deletions
|
|
@ -96,7 +96,9 @@ async function testEmail() {
|
|||
const { canceled, result: destination } = await os.inputText({
|
||||
title: i18n.ts.destination,
|
||||
type: 'email',
|
||||
placeholder: instance.maintainerEmail,
|
||||
default: instance.maintainerEmail ?? '',
|
||||
placeholder: 'test@example.com',
|
||||
minLength: 1,
|
||||
});
|
||||
if (canceled) return;
|
||||
os.apiWithDialog('admin/send-email', {
|
||||
|
|
|
|||
|
|
@ -305,6 +305,11 @@ const PRESET_TIMELINE = `/// @ 0.13.1
|
|||
// それぞれのノートごとにUI要素作成
|
||||
let noteEls = []
|
||||
each (let note, notes) {
|
||||
// 表示名を設定していないアカウントはidを表示
|
||||
let userName = if Core:type(note.user.name) == "str" note.user.name else note.user.username
|
||||
// リノートもしくはメディア・投票のみで本文が無いノートに代替表示文を設定
|
||||
let noteText = if Core:type(note.text) == "str" note.text else "(リノートもしくはメディア・投票のみのノート)"
|
||||
|
||||
let el = Ui:C:container({
|
||||
bgColor: "#444"
|
||||
fgColor: "#fff"
|
||||
|
|
@ -312,11 +317,11 @@ const PRESET_TIMELINE = `/// @ 0.13.1
|
|||
rounded: true
|
||||
children: [
|
||||
Ui:C:mfm({
|
||||
text: note.user.name
|
||||
text: userName
|
||||
bold: true
|
||||
})
|
||||
Ui:C:mfm({
|
||||
text: note.text
|
||||
text: noteText
|
||||
})
|
||||
]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue