1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-12-23 23:02:08 +03:00

Merge branch 'custom-avatar-provider' of git://github.com/Vinrobot/BookStack into Vinrobot-custom-avatar-provider

This commit is contained in:
Dan Brown
2018-12-22 18:18:14 +00:00
4 changed files with 17 additions and 5 deletions

View File

@@ -251,7 +251,7 @@ class UserRepo
}
try {
$avatar = Images::saveUserGravatar($user);
$avatar = Images::saveUserGravatar($user, config('services.gravatar_url'));
$user->avatar()->associate($avatar);
$user->save();
return true;