X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fpoke.php;h=2f989dd7d3b07bd415847fe376034911b3be3ea9;hb=0b5f7da270bcaa679cb684dbbbbe40781f0b49c6;hp=ea0093e1dc9162b9a17ebf5fa8bf318bef619c26;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git
diff --git a/mod/poke.php b/mod/poke.php
index ea0093e1dc..2f989dd7d3 100644
--- a/mod/poke.php
+++ b/mod/poke.php
@@ -1,7 +1,6 @@
-' . ACTIVITY_OBJ_PERSON . '
' . $target['name'] . '' . App::get_baseurl() . '/contact/' . $target['id'] . '';
+ $arr['object'] = '' . "\n";
$item_id = item_store($arr);
- if ($item_id) {
+ if($item_id) {
//q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d",
- // dbesc(App::get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id),
+ // dbesc(System::baseUrl() . '/display/' . $poster['nickname'] . '/' . $item_id),
// intval($uid),
// intval($item_id)
//);
- proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "tag", $item_id);
}
call_hooks('post_local_end', $arr);
- proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $post_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $post_id);
return;
}
@@ -158,23 +162,23 @@ function poke_content(App $a) {
$name = '';
$id = '';
- if (intval($_GET['c'])) {
+ if(intval($_GET['c'])) {
$r = q("SELECT `id`,`name` FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($_GET['c']),
intval(local_user())
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$name = $r[0]['name'];
$id = $r[0]['id'];
}
}
- $base = App::get_baseurl();
+ $base = System::baseUrl();
$head_tpl = get_markup_template('poke_head.tpl');
$a->page['htmlhead'] .= replace_macros($head_tpl,array(
- '$baseurl' => App::get_baseurl(true),
+ '$baseurl' => System::baseUrl(true),
'$base' => $base
));
@@ -185,11 +189,9 @@ function poke_content(App $a) {
$verbs = get_poke_verbs();
$shortlist = array();
- foreach ($verbs as $k => $v) {
- if ($v[1] !== 'NOTRANSLATION') {
+ foreach($verbs as $k => $v)
+ if($v[1] !== 'NOTRANSLATION')
$shortlist[] = array($k,$v[1]);
- }
- }
$tpl = get_markup_template('poke_content.tpl');