mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
return full url with domain name (#3383)
This commit is contained in:
@@ -72,4 +72,4 @@ class UserAvatarView(APIView):
|
||||
error_msg = 'Internal Server Error'
|
||||
return api_error(status.HTTP_500_INTERNAL_SERVER_ERROR, error_msg)
|
||||
|
||||
return Response({'avatar_url': avatar_url})
|
||||
return Response({'avatar_url': request.build_absolute_uri(avatar_url)})
|
||||
|
Reference in New Issue
Block a user