mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-27 17:40:38 +00:00
Fixed "you boosted" when boosted by same username in different instance (#560)
Fixes #558
This commit is contained in:
parent
52eff96ab4
commit
e512453cfe
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ public struct StatusRowView: View {
|
|||
HStack(spacing: 2) {
|
||||
Image(systemName: "arrow.left.arrow.right.circle.fill")
|
||||
AvatarView(url: viewModel.status.account.avatar, size: .boost)
|
||||
if viewModel.status.account.username != account.account?.username {
|
||||
if viewModel.status.account.url != account.account?.url {
|
||||
EmojiTextApp(.init(stringValue: viewModel.status.account.safeDisplayName), emojis: viewModel.status.account.emojis)
|
||||
Text("status.row.was-boosted")
|
||||
} else {
|
||||
|
@ -151,7 +151,7 @@ public struct StatusRowView: View {
|
|||
.accessibilityLabel(
|
||||
Text("\(viewModel.status.account.safeDisplayName)")
|
||||
+ Text(" ")
|
||||
+ Text(viewModel.status.account.username != account.account?.username ? "status.row.was-boosted" : "status.row.you-boosted")
|
||||
+ Text(viewModel.status.account.url != account.account?.url ? "status.row.was-boosted" : "status.row.you-boosted")
|
||||
)
|
||||
.font(.scaledFootnote)
|
||||
.foregroundColor(.gray)
|
||||
|
|
Loading…
Reference in a new issue