feat: フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように (#11218)

* feat: フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように

* Update CHANGELOG.md

---------

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Cherry-picks: 239ea39d6f
This commit is contained in:
Sayamame-beans 2023-07-10 13:30:41 +09:00 committed by anatawa12
parent 200556a466
commit a45e320d9c
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,7 @@
### Client
- 画像を動画と同様に簡単に隠せるように
- フォローやお気に入り登録をしていないチャンネルを開く時は概要ページを開くように
### Server

View File

@ -87,7 +87,7 @@ const props = defineProps<{
channelId: string;
}>();
let tab = $ref('timeline');
let tab = $ref('overview');
let channel = $ref(null);
let favorited = $ref(false);
let searchQuery = $ref('');
@ -107,6 +107,9 @@ watch(() => props.channelId, async () => {
channelId: props.channelId,
});
favorited = channel.isFavorited;
if (favorited || channel.isFollowing) {
tab = 'timeline';
}
}, { immediate: true });
function edit() {