mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: stupid mistake that broke flagging of posts
This commit is contained in:
parent
85eba22d65
commit
067b08c422
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class PostActionsController < ApplicationController
|
|||
args = {}
|
||||
args[:message] = params[:message] if params[:message].present?
|
||||
args[:take_action] = true if guardian.is_staff? and params[:take_action] == 'true'
|
||||
args[:flag_topic] = true if params[:flag_topic]
|
||||
args[:flag_topic] = true if params[:flag_topic] == 'true'
|
||||
|
||||
post_action = PostAction.act(current_user, @post, @post_action_type_id, args)
|
||||
|
||||
|
|
Loading…
Reference in a new issue