summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorOni-Men <sensyaheis@gmail.com>2020-03-20 13:57:55 +0900
committerGitHub <noreply@github.com>2020-03-20 13:57:55 +0900
commitf2f7f532a02805cad792f7ccd090a7afdd5513fd (patch)
tree07018fc5283a20fdcef20d0934076b135c3dba0b /src/client
parent連携ログインができないのなどを修正 (#6162) (diff)
downloadmisskey-f2f7f532a02805cad792f7ccd090a7afdd5513fd.tar.gz
misskey-f2f7f532a02805cad792f7ccd090a7afdd5513fd.tar.bz2
misskey-f2f7f532a02805cad792f7ccd090a7afdd5513fd.zip
use username if name was empty (#6166)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/note.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/pages/note.vue b/src/client/pages/note.vue
index 30741bab55..ae7917c602 100644
--- a/src/client/pages/note.vue
+++ b/src/client/pages/note.vue
@@ -1,7 +1,12 @@
<template>
<div class="mk-note-page">
<portal to="avatar" v-if="note"><mk-avatar class="avatar" :user="note.user" :disable-preview="true"/></portal>
- <portal to="title" v-if="note">{{ $t('noteOf', { user: note.user.name }) }}</portal>
+ <portal to="title" v-if="note">
+ <mfm
+ :text="$t('noteOf', { user: note.user.name || note.user.username })"
+ :plain="true" :nowrap="true" :custom-emojis="note.user.emojis" :is-note="false"
+ />
+ </portal>
<transition :name="$store.state.device.animation ? 'zoom' : ''" mode="out-in">
<div v-if="note">