Skip to content
Snippets Groups Projects
Commit 5d950778 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

branch 'bw_get_account_posts_by_blog_fix2' rebased onto develop

parents 77f5b817 11bf0740
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!359Supplemented missing condition to get account posts by blog
...@@ -67,7 +67,7 @@ BEGIN ...@@ -67,7 +67,7 @@ BEGIN
WHERE hfc.account_id = __account_id AND (__post_id = 0 OR hfc.created_at <= __created_at) 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 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 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 ORDER BY created_at DESC
LIMIT _limit LIMIT _limit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment