From 975860a1bb888385c446e94d6f1d04c72ea1c601 Mon Sep 17 00:00:00 2001
From: jsalyers <jsalyers@syncad.com>
Date: Thu, 12 Nov 2020 18:05:28 -0500
Subject: [PATCH] [JES] And this is why we do full testing

---
 hive/server/bridge_api/methods.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hive/server/bridge_api/methods.py b/hive/server/bridge_api/methods.py
index 41cba5e43..fe792f0c8 100644
--- a/hive/server/bridge_api/methods.py
+++ b/hive/server/bridge_api/methods.py
@@ -107,7 +107,7 @@ async def _get_ranked_posts_for_communities( db, sort:str, community, start_auth
     async def execute_community_query(db, sql, limit):
         return await db.query_all(sql, community=community, author=start_author, permlink=start_permlink, limit=limit, observer=observer )
 
-    pinned_sql = "SELECT * FROM bridge_get_ranked_post_pinned_for_community( (:community)::VARCHAR, (:limit)::SMALLINT )"
+    pinned_sql = "SELECT * FROM bridge_get_ranked_post_pinned_for_community( (:community)::VARCHAR, (:limit)::SMALLINT, (:observer)::VARCHAR )"
     # missing paging which results in inability to get all pinned posts
     # and/or causes the same posts to be on each page (depending on limit and number of pinned)
     if sort == 'hot':
-- 
GitLab