Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 819ed2d

Browse files
dvorakrothjzzocc
authored andcommittedNov 10, 2022
hide link previews when a status is hidden behind a content warning (#114)
1 parent c832805 commit 819ed2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Views/UIKit/StatusBodyView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ final class StatusBodyView: UIView {
5959
pollView.isAccessibilityElement = !isContextParent || viewModel.hasVotedInPoll || viewModel.isPollExpired
6060

6161
cardView.viewModel = viewModel.cardViewModel
62-
cardView.isHidden = viewModel.cardViewModel == nil
62+
cardView.isHidden = viewModel.cardViewModel == nil || !viewModel.shouldShowContent
6363

6464
accessibilityAttributedLabel = accessibilityAttributedLabel(forceShowContent: false)
6565

0 commit comments

Comments
 (0)
This repository has been archived.