if ($photo) {
DI::logger()->notice('Updating photo.', ['photo' => $photo]);
- Model\Contact::updateAvatar($photo, local_user(), $contact['id'], true);
+ Model\Contact::updateAvatar($contact['id'], $photo, true);
}
- if ($r) {
- info(DI::l10n()->t('Contact settings applied.') . EOL);
- } else {
- notice(DI::l10n()->t('Contact update failed.') . EOL);
+ if (!$r) {
+ notice(DI::l10n()->t('Contact update failed.'));
}
return;
throw new BadRequestException(DI::l10n()->t('Contact not found.'));
}
- Model\Profile::load(DI::app(), "", Model\Contact::getDetailsByURL($contact["url"]));
+ Model\Profile::load(DI::app(), "", Model\Contact::getByURL($contact["url"], false));
$warning = DI::l10n()->t('<strong>WARNING: This is highly advanced</strong> and if you enter incorrect information your communications with this contact may stop working.');
$info = DI::l10n()->t('Please use your browser \'Back\' button <strong>now</strong> if you are uncertain what to do on this page.');