mirror of
https://github.com/metabolist/metatext.git
synced 2025-02-16 14:05:14 +00:00
Fix CW issues
This commit is contained in:
parent
dd5b17aab4
commit
fd758dd97b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue