hide link previews when a status is hidden behind a content warning (#114)
This commit is contained in:
parent
f071b3b683
commit
7e0c41ab7e
|
@ -59,7 +59,7 @@ final class StatusBodyView: UIView {
|
||||||
pollView.isAccessibilityElement = !isContextParent || viewModel.hasVotedInPoll || viewModel.isPollExpired
|
pollView.isAccessibilityElement = !isContextParent || viewModel.hasVotedInPoll || viewModel.isPollExpired
|
||||||
|
|
||||||
cardView.viewModel = viewModel.cardViewModel
|
cardView.viewModel = viewModel.cardViewModel
|
||||||
cardView.isHidden = viewModel.cardViewModel == nil
|
cardView.isHidden = viewModel.cardViewModel == nil || !viewModel.shouldShowContent
|
||||||
|
|
||||||
accessibilityAttributedLabel = accessibilityAttributedLabel(forceShowContent: false)
|
accessibilityAttributedLabel = accessibilityAttributedLabel(forceShowContent: false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue