File tree 2 files changed +18
-10
lines changed
resources/assets/js/components
2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 105
105
106
106
<status-card
107
107
:status =" status"
108
+ :reaction-bar =" reactionBar"
108
109
v-on:status-delete =" deleteStatus"
109
110
v-on:comment-focus =" commentFocus"
110
111
/>
707
708
discover_feed: [],
708
709
recentFeed: this .scope === ' home' ? true : false ,
709
710
recentFeedMin: null ,
710
- recentFeedMax: null
711
+ recentFeedMax: null ,
712
+ reactionBar: this .scope === ' network' ? false : true
711
713
}
712
714
},
713
715
831
833
this .fetchHashtagPosts ();
832
834
}
833
835
// this.fetchStories();
834
- this .rtw ();
836
+ // this.rtw();
837
+
835
838
setTimeout (function () {
836
839
document .querySelectorAll (' .timeline .card-body .comments .comment-body a' ).forEach (function (i , e ) {
837
840
i .href = App .util .format .rewriteLinks (i);
902
905
if (self .ids .indexOf (d .id ) == - 1 ) {
903
906
self .feed .push (d);
904
907
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
+ // });
909
912
}
910
913
});
911
914
this .min_id = Math .max (... this .ids ).toString ();
912
915
this .max_id = Math .min (... this .ids ).toString ();
913
916
this .page += 1 ;
914
917
$state .loaded ();
915
918
this .loading = false ;
916
- axios .post (' /api/status/view' , {
917
- ' _v' : vids,
918
- });
919
+ // axios.post('/api/status/view', {
920
+ // '_v': vids,
921
+ // });
919
922
} else {
920
923
$state .complete ();
921
924
}
Original file line number Diff line number Diff line change 74
74
</div >
75
75
76
76
<div class =" card-body" >
77
- <div class =" reactions my-1 pb-2" >
77
+ <div v-if = " reactionBar " class =" reactions my-1 pb-2" >
78
78
<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 >
79
79
<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 >
80
80
<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
140
recommended: {
141
141
type: Boolean ,
142
142
default: false
143
+ },
144
+
145
+ reactionBar: {
146
+ type: Boolean ,
147
+ default: true
143
148
}
144
149
},
145
150
You can’t perform that action at this time.
0 commit comments