diff --git a/hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql b/hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql index 003b925836ba27113affb54045242336b5d901b9..2cf4c8203e4d7fef345a3e016cd76f5bfd4df2b6 100644 --- a/hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql +++ b/hive/db/sql_scripts/bridge_get_ranked_post_for_tag.sql @@ -55,7 +55,7 @@ BEGIN JOIN hive_posts hp1 ON hp1.id = hpt.post_id JOIN hive_accounts_view ha ON hp1.author_id = ha.id WHERE hpt.tag_id = __hive_tag AND hp1.counter_deleted = 0 AND hp1.depth = 0 AND NOT ha.is_grayed AND ( __post_id = 0 OR hp1.id < __post_id ) - ORDER BY hp1.id DESC + ORDER BY hp1.id + 0 DESC LIMIT _limit ) as created JOIN hive_posts_view hp ON hp.id = created.id