*/
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::getByURL($contact["url"], 0, [], false));
+ Model\Profile::load(DI::app(), '', Model\Contact::getByURL($contact["url"], false));
$verbs = [];
foreach (DI::l10n()->getPokeVerbs() as $verb => $translations) {