mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
@@ -359,7 +359,9 @@ class PostRevisor
|
||||
end
|
||||
|
||||
POST_TRACKED_FIELDS.each do |field|
|
||||
@post.public_send("#{field}=", @fields[field]) if @fields.has_key?(field) || (should_create_new_version? && field == "edit_reason")
|
||||
if @fields.has_key?(field) || (should_create_new_version? && field == "edit_reason")
|
||||
@post.public_send("#{field}=", @fields[field])
|
||||
end
|
||||
end
|
||||
|
||||
@post.last_editor_id = @editor.id
|
||||
|
||||
Reference in New Issue
Block a user