mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Not logging old post contents properly
This commit is contained in:
@@ -108,7 +108,7 @@ class StaffActionLogger
|
||||
UserHistory.create!(params(opts).merge(
|
||||
action: UserHistory.actions[:post_edit],
|
||||
post_id: post.id,
|
||||
details: "#{post.raw}\n\n---\n\n#{opts[:new_raw]}"
|
||||
details: "#{opts[:old_raw]}\n\n---\n\n#{post.raw}"
|
||||
))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user