this repo has no description
0
fork

Configure Feed

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

Fix collapsed peek status with wrong url

+9 -1
+9 -1
src/components/status.jsx
··· 268 268 instance={instance} 269 269 size={size} 270 270 contentTextWeight={contentTextWeight} 271 + readOnly={readOnly} 271 272 /> 272 273 </div> 273 274 ); ··· 290 291 instance={instance} 291 292 size={size} 292 293 contentTextWeight={contentTextWeight} 294 + readOnly={readOnly} 293 295 /> 294 296 </div> 295 297 ); ··· 2276 2278 2277 2279 function FilteredStatus({ status, filterInfo, instance, containerProps = {} }) { 2278 2280 const { 2281 + id: statusID, 2279 2282 account: { avatar, avatarStatic, bot, group }, 2280 2283 createdAt, 2281 2284 visibility, ··· 2304 2307 statusKey(status.id, instance) + 2305 2308 ' ' + 2306 2309 (statusKey(reblog?.id, instance) || ''); 2310 + 2311 + const actualStatusID = reblog?.id || statusID; 2312 + const url = instance 2313 + ? `/${instance}/s/${actualStatusID}` 2314 + : `/s/${actualStatusID}`; 2307 2315 2308 2316 return ( 2309 2317 <div ··· 2380 2388 <Link 2381 2389 ref={statusPeekRef} 2382 2390 class="status-link" 2383 - to={`/${instance}/s/${status.id}`} 2391 + to={url} 2384 2392 onClick={() => { 2385 2393 setShowPeek(false); 2386 2394 }}