mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Clearing flags wasn't making topics visible again.
This commit is contained in:
@ -100,9 +100,8 @@ where id in (?)"
|
||||
def clear
|
||||
p = Post.find(params[:id])
|
||||
PostAction.clear_flags!(p, current_user.id)
|
||||
p.hidden = false
|
||||
p.hidden_reason_id = nil
|
||||
p.save
|
||||
p.reload
|
||||
p.unhide!
|
||||
render nothing: true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user