Fix captioning turned on even when showCaption = false

This commit is contained in:
Lim Chee Aun 2024-03-12 08:14:07 +08:00
parent 0b8cbbef51
commit 3dbbba0be2

View file

@ -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 &&