mirror of
https://github.com/discourse/discourse.git
synced 2025-06-17 17:02:33 +08:00
This reverts commit b55af383f779d01d983a3ccf1149438aee9c6725.
This commit is contained in:
@ -244,11 +244,7 @@ class PostsController < ApplicationController
|
||||
|
||||
guardian.ensure_can_edit!(post)
|
||||
|
||||
changes = {
|
||||
raw: params[:post][:raw],
|
||||
edit_reason: params[:post][:edit_reason],
|
||||
locale: params[:post][:locale],
|
||||
}
|
||||
changes = { raw: params[:post][:raw], edit_reason: params[:post][:edit_reason] }
|
||||
|
||||
Post.plugin_permitted_update_params.keys.each { |param| changes[param] = params[:post][param] }
|
||||
|
||||
@ -857,7 +853,6 @@ class PostsController < ApplicationController
|
||||
visible
|
||||
draft_key
|
||||
composer_version
|
||||
locale
|
||||
]
|
||||
|
||||
Post.plugin_permitted_create_params.each do |key, value|
|
||||
|
Reference in New Issue
Block a user