mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +01:00
Fix wrong paths again
This commit is contained in:
parent
4b28b6f366
commit
0a7189d35a
3 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ function AccountStatuses() {
|
|||
const [account, setAccount] = useState({});
|
||||
useTitle(
|
||||
`${account?.acct ? '@' + account.acct : 'Posts'}`,
|
||||
'/a/:instance?/:id',
|
||||
'/:instance?/a/:id',
|
||||
);
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
|
|
|
@ -11,7 +11,7 @@ function Hashtags() {
|
|||
let { hashtag, ...params } = useParams();
|
||||
const { masto, instance } = api({ instance: params.instance });
|
||||
const title = instance ? `#${hashtag} on ${instance}` : `#${hashtag}`;
|
||||
useTitle(title, `/t/:instance?/:hashtag`);
|
||||
useTitle(title, `/:instance?/t/:hashtag`);
|
||||
const hashtagsIterator = useRef();
|
||||
async function fetchHashtags(firstLoad) {
|
||||
if (firstLoad || !hashtagsIterator.current) {
|
||||
|
|
|
@ -13,7 +13,7 @@ function Public({ local }) {
|
|||
const params = useParams();
|
||||
const { masto, instance } = api({ instance: params.instance });
|
||||
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
|
||||
useTitle(title, `/p/l?/:instance`);
|
||||
useTitle(title, `:instance?/p/l?`);
|
||||
|
||||
const publicIterator = useRef();
|
||||
async function fetchPublic(firstLoad) {
|
||||
|
|
Loading…
Reference in a new issue