stubbed in view code from old danbooru; only janitors can lock a wiki page
This commit is contained in:
@@ -640,8 +640,10 @@ class Post < ActiveRecord::Base
|
||||
if can_be_voted_by?(CurrentUser.user)
|
||||
if score == "up"
|
||||
increment!(:score)
|
||||
increment!(:up_score)
|
||||
elsif score == "down"
|
||||
decrement!(:score)
|
||||
decrement!(:down_score)
|
||||
end
|
||||
|
||||
votes.create(:score => score)
|
||||
|
||||
Reference in New Issue
Block a user