Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
hide link previews when a status is hidden behind a content warning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorakroth authored and jzzocc committed Nov 10, 2022
1 parent c832805 commit 819ed2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Views/UIKit/StatusBodyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 819ed2d

Please sign in to comment.