diff --git a/hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql b/hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql index 45a805d70abae0725e89a7f37cda62fbb2963609..c6b94bdc09c4901d12bd0e2aa02dbdd6e97ad67a 100644 --- a/hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql +++ b/hive/db/sql_scripts/hive_blacklisted_accounts_by_observer_view.sql @@ -8,11 +8,11 @@ SELECT observer_accounts.id AS observer_id, JOIN hive_accounts following_accounts ON ((hive_follows.following = following_accounts.id))) JOIN hive_accounts observer_accounts ON ((hive_follows.follower = observer_accounts.id))) WHERE hive_follows.blacklisted -UNION +UNION ALL SELECT observer_accounts.id AS observer_id, following_accounts.id AS blacklisted_id, following_accounts.name AS blacklisted_name, - string_agg(('blacklisted by '::text || (indirect_accounts.name)::text), ','::text) AS source + string_agg(('blacklisted by '::text || (indirect_accounts.name)::text), ','::text ORDER BY indirect_accounts.name) AS source FROM (((hive_follows hive_follows_direct JOIN hive_follows hive_follows_indirect ON ((hive_follows_direct.following = hive_follows_indirect.follower))) JOIN hive_accounts following_accounts ON ((hive_follows_indirect.following = following_accounts.id))) diff --git a/tests/tests_api b/tests/tests_api index 7e65efd650e0d8bc41e194638121ce4b195ae29c..9adc05954e347c3e2441e64c9e0e523d9f21361a 160000 --- a/tests/tests_api +++ b/tests/tests_api @@ -1 +1 @@ -Subproject commit 7e65efd650e0d8bc41e194638121ce4b195ae29c +Subproject commit 9adc05954e347c3e2441e64c9e0e523d9f21361a