fix: post reblog header may display empty reblogger name issue

This commit is contained in:
CMK 2022-02-15 18:17:37 +08:00
parent d4a4e4ba3d
commit aa26a19ae0
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ extension StatusView {
status.author.publisher(for: \.emojis)
)
.map { name, emojis -> StatusView.ViewModel.Header in
let text = L10n.Common.Controls.Status.userReblogged(name)
let text = L10n.Common.Controls.Status.userReblogged(status.author.displayNameWithFallback)
let content = MastodonContent(content: text, emojis: emojis.asDictionary)
do {
let metaContent = try MastodonMetaContent.convert(document: content)