mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Post revision respects 'prioritize_full_name_in_ux' setting (#31293)
WIP Before:  After: 
This commit is contained in:
@@ -18,6 +18,7 @@ class PostRevisionSerializer < ApplicationSerializer
|
||||
# from the user
|
||||
:username,
|
||||
:display_username,
|
||||
:acting_user_name,
|
||||
:avatar_template,
|
||||
# all the changes
|
||||
:edit_reason,
|
||||
@@ -96,6 +97,10 @@ class PostRevisionSerializer < ApplicationSerializer
|
||||
user.username
|
||||
end
|
||||
|
||||
def acting_user_name
|
||||
user.name
|
||||
end
|
||||
|
||||
def avatar_template
|
||||
user.avatar_template
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user