mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
FIX: Not logging old post contents properly
This commit is contained in:
@ -460,8 +460,9 @@ describe PostRevisor do
|
||||
log = UserHistory.where(
|
||||
acting_user_id: moderator.id,
|
||||
action: UserHistory.actions[:post_edit]
|
||||
)
|
||||
).first
|
||||
expect(log).to be_present
|
||||
expect(log.details).to eq("Hello world\n\n---\n\nlets totally update the body")
|
||||
end
|
||||
|
||||
it "doesn't log an edit when a staff member edits their own post" do
|
||||
|
Reference in New Issue
Block a user