mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-22 13:37:01 +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 {
|
public extension StatusViewModel {
|
||||||
var shouldShowMore: Bool {
|
var shouldShowMore: Bool {
|
||||||
guard statusService.status.spoilerText != "" else { return true }
|
guard spoilerText != "" else { return true }
|
||||||
|
|
||||||
if identification.identity.preferences.readingExpandSpoilers {
|
if identification.identity.preferences.readingExpandSpoilers {
|
||||||
return !configuration.showMoreToggled
|
return !configuration.showMoreToggled
|
||||||
|
|
|
@ -246,7 +246,7 @@ private extension StatusView {
|
||||||
applicationButton.setTitle(viewModel.applicationName, for: .normal)
|
applicationButton.setTitle(viewModel.applicationName, for: .normal)
|
||||||
applicationButton.isEnabled = viewModel.applicationURL != nil
|
applicationButton.isEnabled = viewModel.applicationURL != nil
|
||||||
avatarImageView.kf.setImage(with: viewModel.avatarURL)
|
avatarImageView.kf.setImage(with: viewModel.avatarURL)
|
||||||
toggleShowMoreButton.isHidden = !viewModel.sensitive
|
toggleShowMoreButton.isHidden = viewModel.spoilerText == ""
|
||||||
replyButton.setTitle(viewModel.repliesCount == 0 ? "" : String(viewModel.repliesCount), for: .normal)
|
replyButton.setTitle(viewModel.repliesCount == 0 ? "" : String(viewModel.repliesCount), for: .normal)
|
||||||
reblogButton.setTitle(viewModel.reblogsCount == 0 ? "" : String(viewModel.reblogsCount), for: .normal)
|
reblogButton.setTitle(viewModel.reblogsCount == 0 ? "" : String(viewModel.reblogsCount), for: .normal)
|
||||||
setReblogButtonColor(reblogged: viewModel.reblogged)
|
setReblogButtonColor(reblogged: viewModel.reblogged)
|
||||||
|
|
Loading…
Reference in a new issue