]> git.mxchange.org Git - friendica.git/blobdiff - mod/poke.php
Merge pull request #7462 from annando/contact-uid
[friendica.git] / mod / poke.php
index fb1fae85d6727db111a98371171417d8b85bbebf..e8ddf86cd3ad3abc4f527f2a7a0bcf19e440d046 100644 (file)
  */
 
 use Friendica\App;
-use Friendica\Core\Addon;
+use Friendica\Core\Hook;
 use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
 use Friendica\Core\System;
-use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\Model\Item;
 use Friendica\Util\Strings;
@@ -129,9 +128,9 @@ function poke_init(App $a)
        $arr['object'] .= XML::escape('<link rel="photo" type="image/jpeg" href="' . $target['photo'] . '" />' . "\n");
        $arr['object'] .= '</link></object>' . "\n";
 
-       $item_id = Item::insert($arr);
+       Item::insert($arr);
 
-       Addon::callHooks('post_local_end', $arr);
+       Hook::callAll('post_local_end', $arr);
 
        return;
 }
@@ -143,9 +142,6 @@ function poke_content(App $a)
                return;
        }
 
-       $name = '';
-       $id = '';
-
        if (empty($_GET['c'])) {
                return;
        }
@@ -158,15 +154,11 @@ function poke_content(App $a)
        $name = $contact['name'];
        $id = $contact['id'];
 
-       $base = System::baseUrl();
-
        $head_tpl = Renderer::getMarkupTemplate('poke_head.tpl');
        $a->page['htmlhead'] .= Renderer::replaceMacros($head_tpl,[
                '$baseurl' => System::baseUrl(true),
-               '$base' => $base
        ]);
 
-
        $parent = (!empty($_GET['parent']) ? intval($_GET['parent']) : '0');