Commit 261c5213 authored by azul's avatar azul

log: removal of comments by page admins

This might indicate spam and we should investigate the user who created the comment.
parent 2f8505a5
......@@ -27,6 +27,9 @@ module Common::Posts
def destroy
authorize @post
if @post.user != current_user "Page admin removed comment from '#{@post.user.login}' - maybe SPAM."
respond_to do |format|
format.js { render template: 'common/posts/destroy' }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment