Skip to content

Commit

Permalink
hide on vote pref no longer hides self posts per request here: http:/…
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshinsei committed May 26, 2011
1 parent f9159c2 commit 4459e91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2/r2/models/link.py
Expand Up @@ -211,10 +211,10 @@ def keep_item(self, wrapped):
#return False

if user and not c.ignore_hide_rules:
if user.pref_hide_ups and wrapped.likes == True:
if user.pref_hide_ups and wrapped.likes == True and self.author_id != user._id:
return False

if user.pref_hide_downs and wrapped.likes == False:
if user.pref_hide_downs and wrapped.likes == False and self.author_id != user._id:
return False

if wrapped._score < user.pref_min_link_score:
Expand Down

0 comments on commit 4459e91

Please sign in to comment.