mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
Issue 12275: Banner upload via avatar does work now
This commit is contained in:
parent
552a30e1f3
commit
5c74113bf6
2 changed files with 3 additions and 3 deletions
|
@ -89,11 +89,11 @@ class UpdateCredentials extends BaseApi
|
|||
Logger::info('Update profile and user', ['uid' => $uid, 'user' => $user, 'profile' => $profile]);
|
||||
|
||||
if (!empty($request['avatar'])) {
|
||||
Photo::uploadAvatar(1, $request['avatar']);
|
||||
Photo::uploadAvatar($uid, $request['avatar']);
|
||||
}
|
||||
|
||||
if (!empty($request['header'])) {
|
||||
Photo::uploadBanner(1, $request['header']);
|
||||
Photo::uploadBanner($uid, $request['header']);
|
||||
}
|
||||
|
||||
User::update($user, $uid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue