Fix wrong authenticated

This commit is contained in:
Lim Chee Aun 2023-02-25 12:40:59 +08:00
parent 15a75e1ed0
commit b4a8e60144

View file

@ -31,7 +31,8 @@ function Hashtags(props) {
hashtags.sort(); hashtags.sort();
hashtag = hashtags[0]; hashtag = hashtags[0];
const { masto, instance, authenticated } = api({ instance: params.instance }); const { masto, instance } = api({ instance: params.instance });
const { authenticated } = api();
const hashtagTitle = hashtags.map((t) => `#${t}`).join(' '); const hashtagTitle = hashtags.map((t) => `#${t}`).join(' ');
const title = instance ? `${hashtagTitle} on ${instance}` : hashtagTitle; const title = instance ? `${hashtagTitle} on ${instance}` : hashtagTitle;
useTitle(title, `/:instance?/t/:hashtag`); useTitle(title, `/:instance?/t/:hashtag`);