Revert "blog comment improvements"

This reverts commit 320cfa56f9.
This commit is contained in:
jomo
2015-04-02 10:30:15 +02:00
parent 11efebc316
commit 40bdcaf16b
2 changed files with 1 additions and 13 deletions

View File

@@ -10,18 +10,6 @@ class BlogpostsController < ApplicationController
def show
@comment = Comment.new(blogpost: @post)
@comments = @post.comments.page(params[:page])
@comments = @comments.select do |c|
# shadowban april fool comments
if c.author.is?(current_user) || !["april", "hoax", "fool", "troll", "joke", "prank", "legit"].any? { |word| c.content.downcase.include? word }
true
elsif current_user && current_user.mod?
c.content = "[HIDDEN] " + c.content
true
else
false
end
end
@comments = Kaminari.paginate_array(@comments).page(params[:page]).per(25)
end
def new