mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-01 08:18:41 +09:00
Fix bug
This commit is contained in:
parent
2560d3d1c1
commit
48d540e9f4
@ -10,6 +10,6 @@ Vue.filter('userName', user => {
|
||||
return getUserName(user);
|
||||
});
|
||||
|
||||
Vue.filter('userPage', user => {
|
||||
return '/@' + Vue.filter('acct')(user);
|
||||
Vue.filter('userPage', (user, path?) => {
|
||||
return '/@' + Vue.filter('acct')(user) + (path ? '/' + path : '');
|
||||
});
|
||||
|
@ -57,7 +57,7 @@ init(async (launch) => {
|
||||
{ path: '/othello', component: MkOthello },
|
||||
{ path: '/othello/:game', component: MkOthello },
|
||||
{ path: '/@:user', component: MkUser },
|
||||
{ path: '/@:user/:note', component: MkNote }
|
||||
{ path: '/notes/:note', component: MkNote }
|
||||
]
|
||||
});
|
||||
|
||||
|
@ -68,7 +68,7 @@ init((launch) => {
|
||||
{ path: '/@:user', component: MkUser },
|
||||
{ path: '/@:user/followers', component: MkFollowers },
|
||||
{ path: '/@:user/following', component: MkFollowing },
|
||||
{ path: '/@:user/:note', component: MkNote }
|
||||
{ path: '/notes/:note', component: MkNote }
|
||||
]
|
||||
});
|
||||
|
||||
|
@ -30,11 +30,11 @@
|
||||
<b>{{ user.notesCount | number }}</b>
|
||||
<i>%i18n:mobile.tags.mk-user.notes%</i>
|
||||
</a>
|
||||
<a :href="`${user | userPage}/following`">
|
||||
<a :href="user | userPage('following')">
|
||||
<b>{{ user.followingCount | number }}</b>
|
||||
<i>%i18n:mobile.tags.mk-user.following%</i>
|
||||
</a>
|
||||
<a :href="`${user | userPage}/followers`">
|
||||
<a :href="user | userPage('followers')">
|
||||
<b>{{ user.followersCount | number }}</b>
|
||||
<i>%i18n:mobile.tags.mk-user.followers%</i>
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user