diff --git a/hive/server/bridge_api/methods.py b/hive/server/bridge_api/methods.py index 41cba5e435380b6294a31a7bd4e131192e804154..fe792f0c8aae861b039e1ebb6cfa4e07c198ec16 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':