From 819ed2dc867b6056cb4f35836e791b0cb7c4d7d9 Mon Sep 17 00:00:00 2001 From: Amit Ron Date: Thu, 10 Nov 2022 09:12:56 +0200 Subject: [PATCH] hide link previews when a status is hidden behind a content warning (#114) --- Views/UIKit/StatusBodyView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/UIKit/StatusBodyView.swift b/Views/UIKit/StatusBodyView.swift index 5f3e6de1..6573c711 100644 --- a/Views/UIKit/StatusBodyView.swift +++ b/Views/UIKit/StatusBodyView.swift @@ -59,7 +59,7 @@ final class StatusBodyView: UIView { pollView.isAccessibilityElement = !isContextParent || viewModel.hasVotedInPoll || viewModel.isPollExpired cardView.viewModel = viewModel.cardViewModel - cardView.isHidden = viewModel.cardViewModel == nil + cardView.isHidden = viewModel.cardViewModel == nil || !viewModel.shouldShowContent accessibilityAttributedLabel = accessibilityAttributedLabel(forceShowContent: false)