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

[JES] Missed an irredeemables check. Those are no longer needed since that was...

[JES] Missed an irredeemables check. Those are no longer needed since that was part of the old muting code
parent bb764b20
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!370Jsalyers muting at sql level
...@@ -42,8 +42,6 @@ def append_statistics_to_post(post, row, is_pinned, blacklists_for_user=[], over ...@@ -42,8 +42,6 @@ def append_statistics_to_post(post, row, is_pinned, blacklists_for_user=[], over
post['stats']['gray'] = row['is_grayed'] post['stats']['gray'] = row['is_grayed']
if 'is_muted' in row and row['is_muted']: if 'is_muted' in row and row['is_muted']:
post['stats']['gray'] = True post['stats']['gray'] = True
post['stats']['hide'] = 'irredeemables' in post['blacklists']
# it overrides 'is_hidden' flag from post, is that the intent?
if is_pinned: if is_pinned:
post['stats']['is_pinned'] = True post['stats']['is_pinned'] = True
return post return post
......
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