Skip to content

Commit

Permalink
Fix captioning turned on even when showCaption = false
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Mar 12, 2024
1 parent 0b8cbbe commit 3dbbba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,9 @@ function Status({
media={media}
autoAnimate={isSizeLarge}
showCaption={mediaAttachments.length === 1}
allowLongerCaption={!content}
allowLongerCaption={
!content && mediaAttachments.length === 1
}
lang={language}
altIndex={
showMultipleMediaCaptions &&
Expand Down

0 comments on commit 3dbbba0

Please sign in to comment.