Using a constant value for the default avatar

This commit is contained in:
Michael 2020-08-18 20:30:24 +00:00
commit d9fc0ae0ea
8 changed files with 28 additions and 21 deletions

View file

@ -481,7 +481,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
if (DBA::isResult($contact)) {
$photo = $contact['photo'];
} else {
$photo = DI::baseUrl() . '/images/person-300.jpg';
$photo = DI::baseUrl() . Contact::DEFAULT_AVATAR_PHOTO;
}
Contact::updateAvatar($dfrn_record, $photo);