mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06: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({});
|
const [account, setAccount] = useState({});
|
||||||
useTitle(
|
useTitle(
|
||||||
`${account?.acct ? '@' + account.acct : 'Posts'}`,
|
`${account?.acct ? '@' + account.acct : 'Posts'}`,
|
||||||
'/a/:instance?/:id',
|
'/:instance?/a/:id',
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
|
|
|
@ -11,7 +11,7 @@ function Hashtags() {
|
||||||
let { hashtag, ...params } = useParams();
|
let { hashtag, ...params } = useParams();
|
||||||
const { masto, instance } = api({ instance: params.instance });
|
const { masto, instance } = api({ instance: params.instance });
|
||||||
const title = instance ? `#${hashtag} on ${instance}` : `#${hashtag}`;
|
const title = instance ? `#${hashtag} on ${instance}` : `#${hashtag}`;
|
||||||
useTitle(title, `/t/:instance?/:hashtag`);
|
useTitle(title, `/:instance?/t/:hashtag`);
|
||||||
const hashtagsIterator = useRef();
|
const hashtagsIterator = useRef();
|
||||||
async function fetchHashtags(firstLoad) {
|
async function fetchHashtags(firstLoad) {
|
||||||
if (firstLoad || !hashtagsIterator.current) {
|
if (firstLoad || !hashtagsIterator.current) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ function Public({ local }) {
|
||||||
const params = useParams();
|
const params = useParams();
|
||||||
const { masto, instance } = api({ instance: params.instance });
|
const { masto, instance } = api({ instance: params.instance });
|
||||||
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
|
const title = `${instance} (${isLocal ? 'local' : 'federated'})`;
|
||||||
useTitle(title, `/p/l?/:instance`);
|
useTitle(title, `:instance?/p/l?`);
|
||||||
|
|
||||||
const publicIterator = useRef();
|
const publicIterator = useRef();
|
||||||
async function fetchPublic(firstLoad) {
|
async function fetchPublic(firstLoad) {
|
||||||
|
|
Loading…
Reference in a new issue