summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-06 14:35:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-06 14:35:28 +0900
commitc6492d3d587d8db5eb11fdb695d17d08f902bf36 (patch)
tree949f67dc1558dc32e1098cdbdb1faae5850b6bfa
parent2.3.1 (diff)
downloadsharkey-c6492d3d587d8db5eb11fdb695d17d08f902bf36.tar.gz
sharkey-c6492d3d587d8db5eb11fdb695d17d08f902bf36.tar.bz2
sharkey-c6492d3d587d8db5eb11fdb695d17d08f902bf36.zip
誰もフォローしていないときはローカルタイムラインを表示するように
-rw-r--r--src/client/app/desktop/views/components/timeline.vue6
-rw-r--r--src/client/app/mobile/views/pages/home.vue6
2 files changed, 12 insertions, 0 deletions
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';