Fix wrong feature detection for trending link posts
Ooops!
This commit is contained in:
parent
b351060fa7
commit
89a2e7de43
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ function Trending({ columnMode, ...props }) {
|
||||||
const hasCurrentLink = !!currentLink;
|
const hasCurrentLink = !!currentLink;
|
||||||
const currentLinkRef = useRef();
|
const currentLinkRef = useRef();
|
||||||
const supportsTrendingLinkPosts =
|
const supportsTrendingLinkPosts =
|
||||||
sameCurrentInstance && supports('@mastodon/trending-hashtags');
|
sameCurrentInstance && supports('@mastodon/trending-link-posts');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (currentLink && currentLinkRef.current) {
|
if (currentLink && currentLinkRef.current) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue