From 11bf074082a96f8153bb8e53ed6e109fae31f52f Mon Sep 17 00:00:00 2001 From: Bartek Wrona <wrona@syncad.com> Date: Thu, 5 Nov 2020 23:56:16 +0100 Subject: [PATCH] Supplemented missing condition breaking functionality. --- hive/db/sql_scripts/bridge_get_account_posts_by_blog.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive/db/sql_scripts/bridge_get_account_posts_by_blog.sql b/hive/db/sql_scripts/bridge_get_account_posts_by_blog.sql index d89f0ae31..a4765fba5 100644 --- a/hive/db/sql_scripts/bridge_get_account_posts_by_blog.sql +++ b/hive/db/sql_scripts/bridge_get_account_posts_by_blog.sql @@ -67,7 +67,7 @@ BEGIN WHERE hfc.account_id = __account_id AND (__post_id = 0 OR hfc.created_at <= __created_at) AND NOT EXISTS (SELECT NULL FROM hive_posts hp WHERE hp.id = hfc.post_id AND hp.counter_deleted = 0 AND hp.depth = 0 AND hp.community_id IS NOT NULL - AND NOT EXISTS (SELECT NULL FROM hive_reblogs hr WHERE hr.blogger_id = __account_id) + AND NOT EXISTS (SELECT NULL FROM hive_reblogs hr WHERE hr.blogger_id = __account_id AND hr.post_id = hp.id) ) ORDER BY created_at DESC LIMIT _limit -- GitLab