diff --git a/hive/db/sql_scripts/bridge_get_ranked_post_for_all.sql b/hive/db/sql_scripts/bridge_get_ranked_post_for_all.sql index 4ad087293020e53cbae71f84c03ebfff9f144ff9..95fb2deb8867da8bf4b11c1c9dc6c25474248eb6 100644 --- a/hive/db/sql_scripts/bridge_get_ranked_post_for_all.sql +++ b/hive/db/sql_scripts/bridge_get_ranked_post_for_all.sql @@ -154,7 +154,7 @@ DECLARE __observer_id INT; BEGIN __post_id = find_comment_id( _author, _permlink, True ); - __observer_id = find_account_id(_observer, False); + __observer_id = find_account_id(_observer, True); IF __post_id <> 0 THEN SELECT ( hp.payout + hp.pending_payout ) INTO __payout_limit FROM hive_posts hp WHERE hp.id = __post_id; END IF; diff --git a/hive/db/sql_scripts/bridge_get_ranked_post_for_communities.sql b/hive/db/sql_scripts/bridge_get_ranked_post_for_communities.sql index f16a20ecd836313f757377766680279d5da547ac..d29491f3a420e5f67709b5b130f8a7a51b083ea1 100644 --- a/hive/db/sql_scripts/bridge_get_ranked_post_for_communities.sql +++ b/hive/db/sql_scripts/bridge_get_ranked_post_for_communities.sql @@ -383,7 +383,7 @@ BEGIN IF __post_id <> 0 THEN SELECT ( hp.payout + hp.pending_payout ) INTO __payout_limit FROM hive_posts hp WHERE hp.id = __post_id; END IF; - __observer_id = find_account_id(_observer, False); + __observer_id = find_account_id(_observer, True); RETURN QUERY SELECT hp.id, hp.author, 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 aca86aeca8bc7299a7327b81c63530b7e16105cf..d9bddcd4de97544e6febd07348464ee206ecc4b4 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 @@ -166,7 +166,7 @@ BEGIN SELECT ( hp.payout + hp.pending_payout ) INTO __payout_limit FROM hive_posts hp WHERE hp.id = __post_id; END IF; __hive_tag = ARRAY_APPEND( __hive_tag, find_tag_id( _tag, True ) ); - __observer_id = find_account_id(_observer, False); + __observer_id = find_account_id(_observer, True); RETURN QUERY SELECT hp.id, hp.author,