]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Poke.php
Merge pull request #8919 from annando/notice-info
[friendica.git] / src / Module / Contact / Poke.php
index 0f289b529105211d631c2b9e1fbcafdbc30c75d8..9f2ae7bde684e76e3e7e8ad2d7fcc91e2ec4fc61 100644 (file)
@@ -110,9 +110,7 @@ class Poke extends BaseModule
         */
        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.'));
                }
 
@@ -138,7 +136,7 @@ class Poke extends BaseModule
                        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) {