From 8c7b673c2a2d271ac5484578ac496c39277e80f6 Mon Sep 17 00:00:00 2001 From: jsalyers <jsalyers@syncad.com> Date: Mon, 1 Jun 2020 15:56:03 -0400 Subject: [PATCH] [JES] Replace my hardcoded name with variable observer --- hive/server/common/mutes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hive/server/common/mutes.py b/hive/server/common/mutes.py index b7d7e50a1..8044fe75f 100644 --- a/hive/server/common/mutes.py +++ b/hive/server/common/mutes.py @@ -10,10 +10,10 @@ log = logging.getLogger(__name__) GET_BLACKLISTED_ACCOUNTS = """ with blacklisted_users as (select following, 'my_blacklist' as source from hive_follows where follower = - (select id from hive_accounts where name = 'jes2850' ) and blacklisted + (select id from hive_accounts where name = :observer ) and blacklisted union all select following, 'my_followed_blacklists' as source from hive_follows where follower in (select following from hive_follows where follower = - (select id from hive_accounts where name = 'jes2850') and follow_blacklists)) + (select id from hive_accounts where name = :observer ) and follow_blacklists)) select hive_accounts.name, blacklisted_users.source from hive_accounts join blacklisted_users on (hive_accounts.id = blacklisted_users.following) """ -- GitLab