Support server side auto expand spoiler
This commit is contained in:
parent
2961793e87
commit
39dc6dadc7
|
@ -7,6 +7,7 @@ import Shimmer
|
|||
|
||||
public struct StatusRowView: View {
|
||||
@Environment(\.redactionReasons) private var reasons
|
||||
@EnvironmentObject private var preferences: UserPreferences
|
||||
@EnvironmentObject private var account: CurrentAccount
|
||||
@EnvironmentObject private var theme: Theme
|
||||
@EnvironmentObject private var client: Client
|
||||
|
@ -60,6 +61,9 @@ public struct StatusRowView: View {
|
|||
await viewModel.loadEmbededStatus()
|
||||
}
|
||||
}
|
||||
if preferences.serverPreferences?.autoExpandSpoilers == true {
|
||||
viewModel.displaySpoiler = false
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
StatusRowContextMenu(viewModel: viewModel)
|
||||
|
|
Loading…
Reference in New Issue