Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

This commit is contained in:
syuilo 2023-04-29 16:40:58 +09:00
commit e8177ee311
22 changed files with 395 additions and 176 deletions

View file

@ -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', {

View file

@ -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
})
]
})