From 3086f3cd5c1c3dd032a98212fe12e2062fbab9d4 Mon Sep 17 00:00:00 2001 From: jsalyers <jsalyers@syncad.com> Date: Fri, 4 Dec 2020 13:02:43 -0500 Subject: [PATCH] [JES] Make sure observer is getting validated on non-mute sorted posts --- .../sql_scripts/bridge_get_ranked_post_for_tag.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 b7972da4a..aca86aeca 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 @@ -10,7 +10,7 @@ DECLARE BEGIN __post_id = find_comment_id( _author, _permlink, True ); __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, @@ -88,7 +88,7 @@ BEGIN SELECT hp.sc_hot INTO __hot_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, @@ -244,7 +244,7 @@ BEGIN SELECT ( hp.payout + hp.pending_payout ) INTO __payout_limit FROM hive_posts hp WHERE hp.id = __post_id; END IF; __hive_category = find_category_id( _category, True ); - __observer_id = find_account_id(_observer, False); + __observer_id = find_account_id(_observer, True); RETURN QUERY SELECT hp.id, hp.author, @@ -324,7 +324,7 @@ BEGIN END IF; __hive_category = find_category_id( _category, True ); __head_block_time = head_block_time(); - __observer_id = find_account_id(_observer, False); + __observer_id = find_account_id(_observer, True); RETURN QUERY SELECT hp.id, hp.author, @@ -403,7 +403,7 @@ BEGIN SELECT hp.promoted INTO __promoted_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, @@ -481,7 +481,7 @@ BEGIN SELECT hp.sc_trend INTO __trending_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, -- GitLab