From e210c70e211c04347e8587cf49ad2ac919e72f54 Mon Sep 17 00:00:00 2001
From: mgabdev <>
Date: Wed, 3 Jul 2019 23:47:23 -0400
Subject: [PATCH] Removed visiblity favorites of a status
todo: remove account ids from returning in "favourited_by"
---
.../gabsocial/components/status_action_bar.js | 2 +-
.../status/components/detailed_status.js | 27 ++++++-------------
app/javascript/gabsocial/features/ui/index.js | 3 ---
3 files changed, 9 insertions(+), 23 deletions(-)
diff --git a/app/javascript/gabsocial/components/status_action_bar.js b/app/javascript/gabsocial/components/status_action_bar.js
index fc3f0157..bd677581 100644
--- a/app/javascript/gabsocial/components/status_action_bar.js
+++ b/app/javascript/gabsocial/components/status_action_bar.js
@@ -262,7 +262,7 @@ class StatusActionBar extends ImmutablePureComponent {
- {favoriteCount !== 0 && {favoriteCount}}
+ {favoriteCount !== 0 && {favoriteCount}}
{shareButton}
diff --git a/app/javascript/gabsocial/features/status/components/detailed_status.js b/app/javascript/gabsocial/features/status/components/detailed_status.js
index 24e48861..9d171cc9 100644
--- a/app/javascript/gabsocial/features/status/components/detailed_status.js
+++ b/app/javascript/gabsocial/features/status/components/detailed_status.js
@@ -168,25 +168,14 @@ export default class DetailedStatus extends ImmutablePureComponent {
);
}
- if (this.context.router) {
- favouriteLink = (
-
-
-
-
-
-
- );
- } else {
- favouriteLink = (
-
-
-
-
-
-
- );
- }
+ favouriteLink = (
+
+
+
+
+
+
+ );
return (
diff --git a/app/javascript/gabsocial/features/ui/index.js b/app/javascript/gabsocial/features/ui/index.js
index ae6b58fa..ffc678bd 100644
--- a/app/javascript/gabsocial/features/ui/index.js
+++ b/app/javascript/gabsocial/features/ui/index.js
@@ -232,9 +232,6 @@ class SwitchingColumnsArea extends React.PureComponent {
-
-
-
);