mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding logging to photo uploading.
This commit is contained in:
parent
0b1b3ee9b7
commit
9303e3d6fb
1 changed files with 3 additions and 0 deletions
|
@ -877,6 +877,9 @@ def upload_avatar(request):
|
|||
photo = request.FILES['photo']
|
||||
profile = MSocialProfile.get_user(request.user.pk)
|
||||
social_services = MSocialServices.objects.get(user_id=request.user.pk)
|
||||
|
||||
logging.user(request, "~FC~BM~SBUploading photo...")
|
||||
|
||||
image_url = social_services.save_uploaded_photo(photo)
|
||||
if image_url:
|
||||
profile = social_services.set_photo('upload')
|
||||
|
|
Loading…
Add table
Reference in a new issue