X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoke.php;h=db1c94963618f8acbe5f84e64d8b4a2acc8d4872;hb=ea914f4698935456b436a47c41fa10c8d5b484f2;hp=5cd88d7e2a8ee5d448a44d74d978eaa777601ce9;hpb=70389c99eaafa75cfac45003bda231627b77633b;p=friendica.git
diff --git a/mod/poke.php b/mod/poke.php
index 5cd88d7e2a..db1c949636 100644
--- a/mod/poke.php
+++ b/mod/poke.php
@@ -12,8 +12,8 @@ function poke_init(&$a) {
$uid = local_user();
$verb = notags(trim($_GET['verb']));
-
- if(! $verb)
+
+ if(! $verb)
return;
$verbs = get_poke_verbs();
@@ -46,7 +46,7 @@ function poke_init(&$a) {
$target = $r[0];
if($parent) {
- $r = q("select uri, private, allow_cid, allow_gid, deny_cid, deny_gid
+ $r = q("select uri, private, allow_cid, allow_gid, deny_cid, deny_gid
from item where id = %d and parent = %d and uid = %d limit 1",
intval($parent),
intval($parent),
@@ -73,7 +73,7 @@ function poke_init(&$a) {
$poster = $a->contact;
- $uri = item_new_uri($a->get_hostname(),$owner_uid);
+ $uri = item_new_uri($a->get_hostname(),$uid);
$arr = array();
@@ -111,11 +111,11 @@ function poke_init(&$a) {
$item_id = item_store($arr);
if($item_id) {
- q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1",
- dbesc($a->get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id),
- intval($uid),
- intval($item_id)
- );
+ //q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d",
+ // dbesc($a->get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id),
+ // intval($uid),
+ // intval($item_id)
+ //);
proc_run('php',"include/notifier.php","tag","$item_id");
}
@@ -156,20 +156,20 @@ function poke_content(&$a) {
$a->page['htmlhead'] .= '';
$a->page['htmlhead'] .= <<< EOT
-
EOT;
@@ -203,4 +203,4 @@ EOT;
return $o;
-}
\ No newline at end of file
+}