Rearranged order for the "updateAvatar" function

This commit is contained in:
Michael 2020-07-25 11:49:44 +00:00
parent 2c69a9c359
commit cc7a1b181c
3 changed files with 5 additions and 5 deletions

View file

@ -203,7 +203,7 @@ function discourse_get_user($post, $hostaddr)
$avatar = $contact['photo'];
unset($contact['photo']);
DBA::update('contact', $contact, ['id' => $contact['id']]);
Contact::updateAvatar($avatar, 0, $contact['id']);
Contact::updateAvatar($contact['id'], $avatar);
$contact['photo'] = $avatar;
}