mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Transaction in UserAnonymizer prevented avatar from updating
This commit is contained in:
@@ -1009,7 +1009,10 @@ describe UserMerger do
|
||||
it "updates the username" do
|
||||
Jobs::UpdateUsername.any_instance
|
||||
.expects(:execute)
|
||||
.with(user_id: source_user.id, old_username: 'alice1', new_username: 'alice')
|
||||
.with(user_id: source_user.id,
|
||||
old_username: 'alice1',
|
||||
new_username: 'alice',
|
||||
avatar_template: target_user.avatar_template)
|
||||
.once
|
||||
|
||||
merge_users!
|
||||
|
||||
Reference in New Issue
Block a user