Commit 49e8d13a authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'pczempiel_list_community_roles_pagination' into 'develop'

fixed bridge.list_community_roles with pagination

See merge request !491
parents 73f9d267 61fa75e4
......@@ -36,6 +36,7 @@ BEGIN
SELECT role_id
FROM hive_roles
WHERE account_id = (SELECT id from hive_accounts WHERE name = _last)
AND hive_roles.community_id = __community_id
),0);
IF __last_role = 0 THEN
......
......@@ -39,7 +39,7 @@ def append_statistics_to_post(post, row, is_pinned):
post['author_role'] = 'guest'
post['author_title'] = ''
post['stats']['gray'] = row['is_grayed'] or row['is_muted']
post['stats']['gray'] = row['is_grayed'] or row['is_muted'] or (row['role_id'] == -2)
if is_pinned:
post['stats']['is_pinned'] = True
return post
......
This diff is collapsed.
Subproject commit 41a90cf6a1b1da25dd2382df286ab290244606a2
Subproject commit 19cdd81696c9a48229208d40afa357f2e46d84ff
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment