Permalink
Browse files
remove comment downvoting
- Loading branch information...
Showing
with
2 additions
and
6 deletions.
-
+2
−6
app/models/user.rb
|
|
@@ -174,12 +174,8 @@ def can_downvote?(obj) |
|
|
return true
|
|
|
end
|
|
|
elsif obj.is_a?(Comment)
|
|
|
if obj.is_downvotable?
|
|
|
return true
|
|
|
elsif obj.current_vote.try(:vote).to_i == -1
|
|
|
# user can unvote
|
|
|
return true
|
|
|
end
|
|
|
# XXX
|
|
|
return false
|
|
|
end
|
|
|
|
|
|
false
|
|
|
|
0 comments on commit
ef0601f