diff --git a/hive/server/common/mutes.py b/hive/server/common/mutes.py index 003a64921537df91fe8b6cbb8716ef706a89a560..538210393e19a75489d0d885e26f3168f1ec223d 100644 --- a/hive/server/common/mutes.py +++ b/hive/server/common/mutes.py @@ -13,14 +13,14 @@ WITH blacklisted_users AS ( SELECT following, 'my_blacklist' AS source FROM hive_follows WHERE follower = (SELECT id FROM hive_accounts WHERE name = :observer ) AND blacklisted - UNION + 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 = :observer ) AND follow_blacklists) AND blacklisted ) SELECT hive_accounts.name, blacklisted_users.source FROM -hive_accounts JOIN blacklisted_users ON (hive_accounts.id = blacklisted_users.following) +blacklisted_users JOIN hive_accounts ON (hive_accounts.id = blacklisted_users.following) """ def _read_url(url):