this repo has no description
0
fork

Configure Feed

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

Use pinned instead of _pinned

+6 -7
+6 -7
src/components/status.jsx
··· 283 283 url, 284 284 emojis, 285 285 tags, 286 + pinned, 286 287 // Non-API props 287 288 _deleted, 288 289 _pinned, ··· 1122 1123 try { 1123 1124 const newStatus = await masto.v1.statuses 1124 1125 .$select(id) 1125 - [_pinned ? 'unpin' : 'pin'](); 1126 - // saveStatus(newStatus, instance); 1126 + [pinned ? 'unpin' : 'pin'](); 1127 + saveStatus(newStatus, instance); 1127 1128 showToast( 1128 - _pinned 1129 + pinned 1129 1130 ? 'Post unpinned from profile' 1130 1131 : 'Post pinned to profile', 1131 1132 ); 1132 1133 } catch (e) { 1133 1134 console.error(e); 1134 - showToast( 1135 - _pinned ? 'Unable to unpin post' : 'Unable to pin post', 1136 - ); 1135 + showToast(pinned ? 'Unable to unpin post' : 'Unable to pin post'); 1137 1136 } 1138 1137 }} 1139 1138 > 1140 - {_pinned ? ( 1139 + {pinned ? ( 1141 1140 <> 1142 1141 <Icon icon="unpin" /> 1143 1142 <span>Unpin from profile</span>