mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Moderators can edit posts that are queued before they approve/reject
This commit is contained in:
@ -15,6 +15,10 @@ class QueuedPostsController < ApplicationController
|
||||
def update
|
||||
qp = QueuedPost.where(id: params[:id]).first
|
||||
|
||||
if params[:queued_post][:raw].present?
|
||||
qp.update_column(:raw, params[:queued_post][:raw])
|
||||
end
|
||||
|
||||
state = params[:queued_post][:state]
|
||||
if state == 'approved'
|
||||
qp.approve!(current_user)
|
||||
|
Reference in New Issue
Block a user