Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
f32df2a9
Commit
f32df2a9
authored
4 years ago
by
Jason Salyers
Browse files
Options
Downloads
Patches
Plain Diff
[JES] Anoter bug
parent
d36f98c8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/bridge_api/methods.py
+1
-1
1 addition, 1 deletion
hive/server/bridge_api/methods.py
with
1 addition
and
1 deletion
hive/server/bridge_api/methods.py
+
1
−
1
View file @
f32df2a9
...
...
@@ -206,7 +206,7 @@ async def get_ranked_posts(context, sort, start_author='', start_permlink='',
async
def
append_statistics_to_post
(
post
,
row
,
is_pinned
,
blacklists_for_user
=
None
):
"""
apply information such as blacklists and community names/roles to a given post
"""
if
not
blacklists_for_user
:
post
[
'
blacklists
'
]
=
await
Mutes
.
lists
(
row
[
'
author
'
],
row
[
'
author_rep
'
])
post
[
'
blacklists
'
]
=
Mutes
.
lists
(
row
[
'
author
'
],
row
[
'
author_rep
'
])
else
:
post
[
'
blacklists
'
]
=
[]
if
row
[
'
author
'
]
in
blacklists_for_user
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment