mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add ability to give users a title. Show them under usernames beside posts. Needs love from a designer.
This commit is contained in:
@@ -33,6 +33,7 @@ class PostSerializer < ApplicationSerializer
|
||||
:read,
|
||||
:username,
|
||||
:name,
|
||||
:user_title,
|
||||
:reply_to_user,
|
||||
:bookmarked,
|
||||
:raw,
|
||||
@@ -128,6 +129,10 @@ class PostSerializer < ApplicationSerializer
|
||||
object.user.name
|
||||
end
|
||||
|
||||
def user_title
|
||||
object.user.title
|
||||
end
|
||||
|
||||
def trust_level
|
||||
object.user.trust_level
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user