Skip to content

Commit 1e3d3a6

Browse files
committed
Update Timeline, disable new post update checker and hide reaction bar on network timeline
1 parent 3ba31bd commit 1e3d3a6

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

resources/assets/js/components/Timeline.vue

+12-9
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105

106106
<status-card
107107
:status="status"
108+
:reaction-bar="reactionBar"
108109
v-on:status-delete="deleteStatus"
109110
v-on:comment-focus="commentFocus"
110111
/>
@@ -707,7 +708,8 @@
707708
discover_feed: [],
708709
recentFeed: this.scope === 'home' ? true : false,
709710
recentFeedMin: null,
710-
recentFeedMax: null
711+
recentFeedMax: null,
712+
reactionBar: this.scope === 'network' ? false : true
711713
}
712714
},
713715
@@ -831,7 +833,8 @@
831833
this.fetchHashtagPosts();
832834
}
833835
// this.fetchStories();
834-
this.rtw();
836+
// this.rtw();
837+
835838
setTimeout(function() {
836839
document.querySelectorAll('.timeline .card-body .comments .comment-body a').forEach(function(i, e) {
837840
i.href = App.util.format.rewriteLinks(i);
@@ -902,20 +905,20 @@
902905
if(self.ids.indexOf(d.id) == -1) {
903906
self.feed.push(d);
904907
self.ids.push(d.id);
905-
vids.push({
906-
sid: d.id,
907-
pid: d.account.id
908-
});
908+
// vids.push({
909+
// sid: d.id,
910+
// pid: d.account.id
911+
// });
909912
}
910913
});
911914
this.min_id = Math.max(...this.ids).toString();
912915
this.max_id = Math.min(...this.ids).toString();
913916
this.page += 1;
914917
$state.loaded();
915918
this.loading = false;
916-
axios.post('/api/status/view', {
917-
'_v': vids,
918-
});
919+
// axios.post('/api/status/view', {
920+
// '_v': vids,
921+
// });
919922
} else {
920923
$state.complete();
921924
}

resources/assets/js/components/partials/StatusCard.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</div>
7575

7676
<div class="card-body">
77-
<div class="reactions my-1 pb-2">
77+
<div v-if="reactionBar" class="reactions my-1 pb-2">
7878
<h3 v-if="status.favourited" class="fas fa-heart text-danger pr-3 m-0 cursor-pointer" title="Like" v-on:click="likeStatus(status, $event);"></h3>
7979
<h3 v-else class="far fa-heart pr-3 m-0 like-btn text-dark cursor-pointer" title="Like" v-on:click="likeStatus(status, $event);"></h3>
8080
<h3 v-if="!status.comments_disabled" class="far fa-comment text-dark pr-3 m-0 cursor-pointer" title="Comment" v-on:click="commentFocus(status, $event)"></h3>
@@ -140,6 +140,11 @@
140140
recommended: {
141141
type: Boolean,
142142
default: false
143+
},
144+
145+
reactionBar: {
146+
type: Boolean,
147+
default: true
143148
}
144149
},
145150

0 commit comments

Comments
 (0)