From c6492d3d587d8db5eb11fdb695d17d08f902bf36 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 6 May 2018 14:35:28 +0900 Subject: 誰もフォローしていないときはローカルタイムラインを表示するように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/desktop/views/components/timeline.vue | 6 ++++++ src/client/app/mobile/views/pages/home.vue | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index bcfce299f4..855d032586 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -31,6 +31,12 @@ export default Vue.extend({ }; }, + created() { + if ((this as any).os.i.followingCount == 0) { + this.src = 'local'; + } + }, + mounted() { (this.$refs.tl as any).$once('loaded', () => { this.$emit('loaded'); diff --git a/src/client/app/mobile/views/pages/home.vue b/src/client/app/mobile/views/pages/home.vue index f69c4d9c68..ad6d5ed408 100644 --- a/src/client/app/mobile/views/pages/home.vue +++ b/src/client/app/mobile/views/pages/home.vue @@ -75,6 +75,12 @@ export default Vue.extend({ } }, + created() { + if ((this as any).os.i.followingCount == 0) { + this.src = 'local'; + } + }, + mounted() { document.title = 'Misskey'; -- cgit v1.2.3-freya