X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/fc4711d32acb2f0a4cbcf0bfe668189f3590db49..f3dfeeeb263ea9456b21e07b84dc7a01d2d17b98:/forum/views/users.py diff --git a/forum/views/users.py b/forum/views/users.py index 786320c..adf9b59 100644 --- a/forum/views/users.py +++ b/forum/views/users.py @@ -220,7 +220,7 @@ def award_points(request, id): extra = dict(message=request.POST.get('message', ''), awarding_user=request.user.id, value=points) - BonusRepAction(user=user, extra=extra).save(data=dict(value=points, affected=user)) + BonusRepAction(user=request.user, extra=extra).save(data=dict(value=points, affected=user)) return {'commands': { 'update_profile_karma': [user.reputation]