this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix media caption and index not synced

+7 -11
+7 -11
src/components/status.jsx
··· 876 876 0, 877 877 isSizeLarge ? undefined : 4, 878 878 ); 879 + const showMultipleMediaCaptions = 880 + mediaAttachments.length > 1 && 881 + displayedMediaAttachments.some( 882 + (media) => !!media.description && !isMediaCaptionLong(media.description), 883 + ); 879 884 880 885 return ( 881 886 <article ··· 1273 1278 {!!mediaAttachments.length && ( 1274 1279 <MultipleMediaFigure 1275 1280 lang={language} 1276 - enabled={ 1277 - mediaAttachments.length > 1 && 1278 - displayedMediaAttachments.some( 1279 - (media) => 1280 - !!media.description && 1281 - !isMediaCaptionLong(media.description), 1282 - ) 1283 - } 1281 + enabled={showMultipleMediaCaptions} 1284 1282 captionChildren={() => { 1285 1283 return displayedMediaAttachments.map( 1286 1284 (media, i) => ··· 1317 1315 showCaption={mediaAttachments.length === 1} 1318 1316 lang={language} 1319 1317 altIndex={ 1320 - mediaAttachments.length > 1 && 1321 - !!media.description && 1322 - i + 1 1318 + showMultipleMediaCaptions && !!media.description && i + 1 1323 1319 } 1324 1320 to={`/${instance}/s/${id}?${ 1325 1321 withinContext ? 'media' : 'media-only'