Merge pull request #485 from TimoPerplex/7.2.0
U4-5412: Updated the gravatar url`s to load secure content if needed
This commit is contained in:
@@ -233,7 +233,7 @@ angular.module('umbraco.services')
|
||||
}
|
||||
|
||||
setCurrentUser(data);
|
||||
currentUser.avatar = 'http://www.gravatar.com/avatar/' + data.emailHash + '?s=40&d=404';
|
||||
currentUser.avatar = '//www.gravatar.com/avatar/' + data.emailHash + '?s=40&d=404';
|
||||
deferred.resolve(currentUser);
|
||||
});
|
||||
|
||||
@@ -251,4 +251,4 @@ angular.module('umbraco.services')
|
||||
}
|
||||
};
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -90,7 +90,7 @@ function MainController($scope, $rootScope, $location, $routeParams, $timeout, $
|
||||
$timeout(function () {
|
||||
//this can be null if they time out
|
||||
if ($scope.user && $scope.user.emailHash) {
|
||||
$scope.avatar = "http://www.gravatar.com/avatar/" + $scope.user.emailHash + ".jpg?s=64&d=mm";
|
||||
$scope.avatar = "//www.gravatar.com/avatar/" + $scope.user.emailHash + ".jpg?s=64&d=mm";
|
||||
}
|
||||
});
|
||||
$("#avatar-img").fadeTo(1000, 1);
|
||||
@@ -105,4 +105,4 @@ function MainController($scope, $rootScope, $location, $routeParams, $timeout, $
|
||||
|
||||
|
||||
//register it
|
||||
angular.module('umbraco').controller("Umbraco.MainController", MainController);
|
||||
angular.module('umbraco').controller("Umbraco.MainController", MainController);
|
||||
|
||||
Reference in New Issue
Block a user