Fix CW issues

This commit is contained in:
Justin Mazzocchi 2020-10-10 17:02:02 -07:00
parent dd5b17aab4
commit fd758dd97b
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public struct StatusViewModel: CollectionItemViewModel {
public extension StatusViewModel {
var shouldShowMore: Bool {
guard statusService.status.spoilerText != "" else { return true }
guard spoilerText != "" else { return true }
if identification.identity.preferences.readingExpandSpoilers {
return !configuration.showMoreToggled

View File

@ -246,7 +246,7 @@ private extension StatusView {
applicationButton.setTitle(viewModel.applicationName, for: .normal)
applicationButton.isEnabled = viewModel.applicationURL != nil
avatarImageView.kf.setImage(with: viewModel.avatarURL)
toggleShowMoreButton.isHidden = !viewModel.sensitive
toggleShowMoreButton.isHidden = viewModel.spoilerText == ""
replyButton.setTitle(viewModel.repliesCount == 0 ? "" : String(viewModel.repliesCount), for: .normal)
reblogButton.setTitle(viewModel.reblogsCount == 0 ? "" : String(viewModel.reblogsCount), for: .normal)
setReblogButtonColor(reblogged: viewModel.reblogged)