From 1e3d3a69d214528b4e7181f29cad320f3611bbcb Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 29 Jun 2021 01:03:47 -0600 Subject: [PATCH] Update Timeline, disable new post update checker and hide reaction bar on network timeline --- resources/assets/js/components/Timeline.vue | 21 +++++++++++-------- .../js/components/partials/StatusCard.vue | 7 ++++++- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index fd192fb4c..eed3f5c9d 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -105,6 +105,7 @@ @@ -707,7 +708,8 @@ discover_feed: [], recentFeed: this.scope === 'home' ? true : false, recentFeedMin: null, - recentFeedMax: null + recentFeedMax: null, + reactionBar: this.scope === 'network' ? false : true } }, @@ -831,7 +833,8 @@ this.fetchHashtagPosts(); } // this.fetchStories(); - this.rtw(); + // this.rtw(); + setTimeout(function() { document.querySelectorAll('.timeline .card-body .comments .comment-body a').forEach(function(i, e) { i.href = App.util.format.rewriteLinks(i); @@ -902,10 +905,10 @@ if(self.ids.indexOf(d.id) == -1) { self.feed.push(d); self.ids.push(d.id); - vids.push({ - sid: d.id, - pid: d.account.id - }); + // vids.push({ + // sid: d.id, + // pid: d.account.id + // }); } }); this.min_id = Math.max(...this.ids).toString(); @@ -913,9 +916,9 @@ this.page += 1; $state.loaded(); this.loading = false; - axios.post('/api/status/view', { - '_v': vids, - }); + // axios.post('/api/status/view', { + // '_v': vids, + // }); } else { $state.complete(); } diff --git a/resources/assets/js/components/partials/StatusCard.vue b/resources/assets/js/components/partials/StatusCard.vue index e920d4a37..9f654e6da 100644 --- a/resources/assets/js/components/partials/StatusCard.vue +++ b/resources/assets/js/components/partials/StatusCard.vue @@ -74,7 +74,7 @@
-
+

@@ -140,6 +140,11 @@ recommended: { type: Boolean, default: false + }, + + reactionBar: { + type: Boolean, + default: true } },