this repo has no description
0
fork

Configure Feed

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

Only allow trending link posts for current instance, not remote instance

For this to work on remote instance, will need to fetch its version and check first

+4 -1
+4 -1
src/pages/trending.jsx
··· 72 72 // const navigate = useNavigate(); 73 73 const latestItem = useRef(); 74 74 75 + const sameCurrentInstance = instance === currentInstance; 76 + 75 77 const [hashtags, setHashtags] = useState([]); 76 78 const [links, setLinks] = useState([]); 77 79 const trendIterator = useRef(); ··· 137 139 const [currentLink, setCurrentLink] = useState(null); 138 140 const hasCurrentLink = !!currentLink; 139 141 const currentLinkRef = useRef(); 140 - const supportsTrendingLinkPosts = supports('@mastodon/trending-hashtags'); 142 + const supportsTrendingLinkPosts = 143 + sameCurrentInstance && supports('@mastodon/trending-hashtags'); 141 144 142 145 useEffect(() => { 143 146 if (currentLink && currentLinkRef.current) {