UX: Stop putting usernames in edit reason when changing post owner

This commit is contained in:
Gerhard Schlager
2018-08-20 12:26:19 +02:00
parent b4f92a05b3
commit 14af90df5b
3 changed files with 3 additions and 14 deletions

View File

@ -546,13 +546,7 @@ class Post < ActiveRecord::Base
def set_owner(new_user, actor, skip_revision = false)
return if user_id == new_user.id
edit_reason = I18n.with_locale(SiteSetting.default_locale) do
I18n.t(
'change_owner.post_revision_text',
old_user: self.user&.username_lower || I18n.t('change_owner.deleted_user'),
new_user: new_user.username_lower
)
end
edit_reason = I18n.t('change_owner.post_revision_text', locale: SiteSetting.default_locale)
revise(
actor,