FIX: Not logging old post contents properly

This commit is contained in:
Robin Ward
2018-03-14 15:01:36 -04:00
parent d31dfe0e84
commit 135195363b
3 changed files with 6 additions and 3 deletions

View File

@@ -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