use username if name was empty (#6166)
This commit is contained in:
		
							parent
							
								
									80eedf7449
								
							
						
					
					
						commit
						f2f7f532a0
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,7 +1,12 @@
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
<div class="mk-note-page">
 | 
					<div class="mk-note-page">
 | 
				
			||||||
	<portal to="avatar" v-if="note"><mk-avatar class="avatar" :user="note.user" :disable-preview="true"/></portal>
 | 
						<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">
 | 
						<transition :name="$store.state.device.animation ? 'zoom' : ''" mode="out-in">
 | 
				
			||||||
		<div v-if="note">
 | 
							<div v-if="note">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue