Commit 280f937a authored by Nick Stenning's avatar Nick Stenning

Remove unnecessary query param from profile request

This resource request adds a `user_id` query param. But the
corresponding view function doesn't pay any attention to such a
parameter, simply inspecting the authenticated userid to work out whose
profile to provide:

  https://github.com/hypothesis/h/blob/15c39c8b58a8800d7a985c1d29b83fbdb6873266/h/accounts/views.py#L254
parent 345283f4
......@@ -33,7 +33,7 @@ class AccountController
$scope.$broadcast 'formState', form.$name, '' # Update status btn
$scope.tab = 'Account'
session.profile({user_id: auth.user}).$promise
session.profile().$promise
.then (result) =>
$scope.subscriptions = result.subscriptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment