this repo has no description
0
fork

Configure Feed

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

Use current instance for links on account info

+4 -4
+4 -4
src/components/account-info.jsx
··· 126 126 const { masto } = api({ 127 127 instance, 128 128 }); 129 - const { masto: currentMasto } = api(); 129 + const { masto: currentMasto, instance: currentInstance } = api(); 130 130 const [uiState, setUIState] = useState('default'); 131 131 const isString = typeof account === 'string'; 132 132 const [info, setInfo] = useState(isString ? null : account); ··· 137 137 ); 138 138 139 139 const sameCurrentInstance = useMemo( 140 - () => instance === api().instance, 141 - [instance], 140 + () => instance === currentInstance, 141 + [instance, currentInstance], 142 142 ); 143 143 144 144 useEffect(() => { ··· 534 534 class="note" 535 535 dir="auto" 536 536 onClick={handleContentLinks({ 537 - instance, 537 + instance: currentInstance, 538 538 })} 539 539 dangerouslySetInnerHTML={{ 540 540 __html: enhanceContent(note, { emojis }),