return self::postReturn(false);
}
- Logger::info('poke: verb ' . $verb . ' contact ' . $contact_id);
+ Logger::info('verb ' . $verb . ' contact ' . $contact_id);
$contact = DBA::selectFirst('contact', ['id', 'name'], ['id' => $parameters['id'], 'uid' => local_user()]);
if (!DBA::isResult($contact)) {
*/
private static function postReturn(bool $success)
{
- if ($success) {
- info(DI::l10n()->t('Poke successfully sent.'));
- } else {
+ if (!$success) {
notice(DI::l10n()->t('Error while sending poke, please retry.'));
}
throw new HTTPException\NotFoundException();
}
- Model\Profile::load(DI::app(), '', Model\Contact::getDetailsByURL($contact["url"]));
+ Model\Profile::load(DI::app(), '', Model\Contact::getByURL($contact["url"], false));
$verbs = [];
foreach (DI::l10n()->getPokeVerbs() as $verb => $translations) {