this repo has no description
0
fork

Configure Feed

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

Handle case when previewUrl is a video instead of thumbnail image

+4 -2
+3 -1
src/components/media.jsx
··· 185 185 const isImage = 186 186 type === 'image' || 187 187 (type === 'unknown' && previewUrl && !isVideoMaybe && !isAudioMaybe); 188 + const isPreviewVideoMaybe = previewUrl && 189 + /\.(mp4|m4r|m4v|mov|webm)$/i.test(getURLObj(previewUrl).pathname); 188 190 189 191 const parentRef = useRef(); 190 192 const [imageSmallerThanParent, setImageSmallerThanParent] = useState(false); ··· 577 579 /> 578 580 ) : ( 579 581 <> 580 - {previewUrl ? ( 582 + {previewUrl && !isPreviewVideoMaybe ? ( 581 583 <img 582 584 src={previewUrl} 583 585 alt={showInlineDesc ? '' : description}
+1 -1
src/locales/en.po
··· 1314 1314 msgid "Filtered" 1315 1315 msgstr "" 1316 1316 1317 - #: src/components/media.jsx:414 1317 + #: src/components/media.jsx:416 1318 1318 msgid "Open file" 1319 1319 msgstr "Open file" 1320 1320