From 0b3c3021f5d45c11ea6f12b8932046ba2551212c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 18 Jun 2019 22:32:34 -0600 Subject: [PATCH] Update Timeline component, hide sensitive comments --- resources/assets/js/components/Timeline.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index ea3ea260b..c4c834638 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -133,14 +133,14 @@

- - {{reply.account.username}} - - - - - - + + {{reply.account.username}} + + + + + +

@@ -696,7 +696,9 @@ fetchStatusComments(status, card) { axios.get('/api/v2/status/'+status.id+'/replies') .then(res => { - let data = res.data; + let data = res.data.filter(res => { + return res.sensitive == false; + }); this.replies = _.reverse(data); }).catch(err => { })