Fix wrong feature detection for trending link posts

Ooops!
This commit is contained in:
Lim Chee Aun 2024-08-15 17:34:54 +08:00
parent b351060fa7
commit 89a2e7de43

View file

@ -140,7 +140,7 @@ function Trending({ columnMode, ...props }) {
const hasCurrentLink = !!currentLink;
const currentLinkRef = useRef();
const supportsTrendingLinkPosts =
sameCurrentInstance && supports('@mastodon/trending-hashtags');
sameCurrentInstance && supports('@mastodon/trending-link-posts');
useEffect(() => {
if (currentLink && currentLinkRef.current) {