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

Supplemented missing condition breaking functionality.

parent fc52ea6c
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