diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index c8a5b6ad..fcfa244b 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -280,17 +280,24 @@ :status="status" :recommended="true" /> + +
+
+
+

+

empty_timeline.jpg

+

We cannot find any posts for this timeline.

+

+ Discover new posts and people +

+
+
+
- -
@@ -580,7 +587,8 @@ recentFeed: this.scope === 'home' ? true : false, recentFeedMin: null, recentFeedMax: null, - reactionBar: true + reactionBar: true, + emptyFeed: false } }, @@ -687,11 +695,18 @@ axios.get(apiUrl, { params: { max_id: this.max_id, - limit: 3, + limit: 12, recent_feed: this.recentFeed } }).then(res => { let data = res.data; + + if(!data.length) { + this.loading = false; + this.emptyFeed = true; + return; + } + this.feed.push(...data); let ids = data.map(status => status.id); this.ids = ids;