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

Merge branch 'bw_get_account_posts_by_blog_fix2' into 'develop'

Supplemented missing condition to get account posts by blog

See merge request !359
parents 77f5b817 5d950778
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
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
......
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