mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Allow a user to upload an image for their expansion background.
This commit is contained in:
@@ -27,6 +27,7 @@ class UserSerializer < BasicUserSerializer
|
||||
:created_at,
|
||||
:website,
|
||||
:profile_background,
|
||||
:expansion_background,
|
||||
:location,
|
||||
:can_edit,
|
||||
:can_edit_username,
|
||||
@@ -117,6 +118,14 @@ class UserSerializer < BasicUserSerializer
|
||||
profile_background.present?
|
||||
end
|
||||
|
||||
def expansion_background
|
||||
object.user_profile.expansion_background
|
||||
end
|
||||
|
||||
def include_expansion_background?
|
||||
expansion_background.present?
|
||||
end
|
||||
|
||||
def location
|
||||
object.user_profile.location
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user