mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Fix get_user_photo to only return photo, not user name from DB
This commit is contained in:
@@ -197,9 +197,6 @@ def get_user_name(user: KhojUser):
|
|||||||
|
|
||||||
|
|
||||||
def get_user_photo(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()
|
google_profile: GoogleUser = GoogleUser.objects.filter(user=user).first()
|
||||||
if google_profile:
|
if google_profile:
|
||||||
return google_profile.picture
|
return google_profile.picture
|
||||||
|
|||||||
Reference in New Issue
Block a user