mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 14:38:30 +08:00
parent
6a7e82c44c
commit
b0f72ca1d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user