this repo has no description
0
fork

Configure Feed

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

Quick fix for pinned post not showing pin

_pinned no longer stored with post, so pinned posts now can't be reactive

+10 -5
+3 -1
src/components/timeline.jsx
··· 461 461 view, 462 462 }) { 463 463 const { id: statusID, reblog, items, type, _pinned } = status; 464 + if (_pinned) useItemID = false; 464 465 const actualStatusID = reblog?.id || statusID; 465 466 const url = instance 466 467 ? `/${instance}/s/${actualStatusID}` ··· 496 497 <li key={`timeline-${statusID}`} class="timeline-item-carousel"> 497 498 <StatusCarousel title={title} class={`${type}-carousel`}> 498 499 {items.map((item) => { 499 - const { id: statusID, reblog } = item; 500 + const { id: statusID, reblog, _pinned } = item; 500 501 const actualStatusID = reblog?.id || statusID; 501 502 const url = instance 502 503 ? `/${instance}/s/${actualStatusID}` 503 504 : `/s/${actualStatusID}`; 505 + if (_pinned) useItemID = false; 504 506 return ( 505 507 <li key={statusID}> 506 508 <Link class="status-carousel-link timeline-item-alt" to={url}>
+7 -4
src/pages/account-statuses.jsx
··· 152 152 153 153 const results = []; 154 154 if (firstLoad) { 155 - const { value: pinnedStatuses } = await masto.v1.accounts 155 + const { value } = await masto.v1.accounts 156 156 .$select(id) 157 157 .statuses.list({ 158 158 pinned: true, 159 159 }) 160 160 .next(); 161 - if (pinnedStatuses?.length && !tagged && !media) { 162 - pinnedStatuses.forEach((status) => { 161 + if (value?.length && !tagged && !media) { 162 + const pinnedStatuses = value.map((status) => { 163 163 saveStatus(status, instance); 164 - status._pinned = true; 164 + return { 165 + ...status, 166 + _pinned: true, 167 + }; 165 168 }); 166 169 if (pinnedStatuses.length >= 3) { 167 170 const pinnedStatusesIds = pinnedStatuses.map((status) => status.id);