From 42d81fc2aa6fbd283ac2c0edbdf07e554effc244 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 19 Jun 2019 01:26:44 -0600 Subject: [PATCH] Update PostComponent, hide sensitive comments behind warning --- .../assets/js/components/PostComponent.vue | 79 +++++++++++-------- 1 file changed, 44 insertions(+), 35 deletions(-) diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index b038674c..7902fd6a 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -113,50 +113,59 @@

+
Loading...
-
+
-

- - {{truncate(reply.account.username,15)}} - - - - - - -

-

- - {{reply.favourites_count == 1 ? '1 like' : reply.favourites_count + ' likes'}} - Reply -

-
- - {{reply.thread ? 'Hide' : 'View'}} Replies ({{reply.reply_count}}) +
+
+

This comment may contain sensitive material

+

Show

+
-
-
-

- - {{s.account.username}} - - - - - - -

-

- - {{s.favourites_count == 1 ? '1 like' : s.favourites_count + ' likes'}} -

+
+

+ + {{truncate(reply.account.username,15)}} + + + + + + +

+

+ + {{reply.favourites_count == 1 ? '1 like' : reply.favourites_count + ' likes'}} + Reply +

+
+ + {{reply.thread ? 'Hide' : 'View'}} Replies ({{reply.reply_count}}) +
+
+
+

+ + {{s.account.username}} + + + + + + +

+

+ + {{s.favourites_count == 1 ? '1 like' : s.favourites_count + ' likes'}} +

+