diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2021-09-09 00:03:10 -0400 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-03-07 19:19:31 -0500 |
| commit | 0db5a5a581aa6560637dd85886dfd9d7934f40fa (patch) | |
| tree | 86497ff3b791454286a5e5167fcab4b2cec64dac /src/components/status_content/status_content.js | |
| parent | ba858a894c4a1ff1a25c1d72759afccb5ed34f0f (diff) | |
Fix controlled status display toggles
Diffstat (limited to 'src/components/status_content/status_content.js')
| -rw-r--r-- | src/components/status_content/status_content.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 527a4cf5..cf72ccb8 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -116,12 +116,8 @@ const StatusContent = { toggleExpandingSubject () { controlledOrUncontrolledToggle(this, 'expandingSubject') }, - toggleShowMore () { - if (this.mightHideBecauseTall) { - this.toggleShowingTall() - } else if (this.mightHideBecauseSubject) { - this.toggleExpandingSubject() - } + toggleShowingLongSubject () { + controlledOrUncontrolledToggle(this, 'showingLongSubject') }, setMedia () { const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments |
