mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Fix get_user_photo to only return photo, not user name from DB
This commit is contained in:
parent
89b8ec3546
commit
382507051f
1 changed files with 0 additions and 3 deletions
|
@ -197,9 +197,6 @@ def get_user_name(user: KhojUser):
|
|||
|
||||
|
||||
def get_user_photo(user: KhojUser):
|
||||
full_name = user.get_full_name()
|
||||
if not is_none_or_empty(full_name):
|
||||
return full_name
|
||||
google_profile: GoogleUser = GoogleUser.objects.filter(user=user).first()
|
||||
if google_profile:
|
||||
return google_profile.picture
|
||||
|
|
Loading…
Add table
Reference in a new issue