Skip to content
Snippets Groups Projects
Commit 3086f3cd authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Make sure observer is getting validated on non-mute sorted posts

parent 6662c9d0
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!421Jsalyers blacklist v2
......@@ -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,
......
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