It's Riseup's twentieth year, help keep us going! If you can afford it, please contribute to our winter fundraising drive.

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
Rails.logger.info "Page admin removed comment from '#{@post.user.login}' - maybe SPAM."
end
@post.destroy
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