fix(client): ユーザーページでアクティビティを見ることができないのを修正

This commit is contained in:
tamaina 2023-02-11 07:17:50 +00:00
parent 9349f72227
commit 19c0027605
2 changed files with 4 additions and 8 deletions

View file

@ -14,7 +14,7 @@ You should also include the user name that made the change.
- アニメーションを少なくする設定の時、MkPageHeaderのタブアニメーションを無効化 - アニメーションを少なくする設定の時、MkPageHeaderのタブアニメーションを無効化
### Bugfixes ### Bugfixes
- - Client: ユーザーページでアクティビティを見ることができない問題を修正
## 13.6.0 (2023/02/11) ## 13.6.0 (2023/02/11)

View file

@ -6,6 +6,7 @@
<div v-if="user"> <div v-if="user">
<XHome v-if="tab === 'home'" :user="user"/> <XHome v-if="tab === 'home'" :user="user"/>
<XTimeline v-else-if="tab === 'notes'" :user="user" /> <XTimeline v-else-if="tab === 'notes'" :user="user" />
<XActivity v-else-if="tab === 'activity'" :user="user"/>
<XAchievements v-else-if="tab === 'achievements'" :user="user"/> <XAchievements v-else-if="tab === 'achievements'" :user="user"/>
<XReactions v-else-if="tab === 'reactions'" :user="user"/> <XReactions v-else-if="tab === 'reactions'" :user="user"/>
<XClips v-else-if="tab === 'clips'" :user="user"/> <XClips v-else-if="tab === 'clips'" :user="user"/>
@ -20,13 +21,10 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { defineAsyncComponent, computed, inject, onMounted, onUnmounted, watch } from 'vue'; import { defineAsyncComponent, computed, watch } from 'vue';
import calcAge from 's-age';
import * as Acct from 'misskey-js/built/acct'; import * as Acct from 'misskey-js/built/acct';
import * as misskey from 'misskey-js'; import * as misskey from 'misskey-js';
import { getScrollPosition } from '@/scripts/scroll'; import { acct as getAcct } from '@/filters/user';
import number from '@/filters/number';
import { userPage, acct as getAcct } from '@/filters/user';
import * as os from '@/os'; import * as os from '@/os';
import { useRouter } from '@/router'; import { useRouter } from '@/router';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
@ -49,8 +47,6 @@ const props = withDefaults(defineProps<{
page: 'home', page: 'home',
}); });
const router = useRouter();
let tab = $ref(props.page); let tab = $ref(props.page);
let user = $ref<null | misskey.entities.UserDetailed>(null); let user = $ref<null | misskey.entities.UserDetailed>(null);
let error = $ref(null); let error = $ref(null);