X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmood.php;h=f804af0c00819ec0d9ed93714867e44b49396502;hb=789e1f4275bb216183f93cc392bd6faebfe87fb9;hp=7a793c71e0fd91d0428d9b1e515055576b9f9847;hpb=f1bc2afbfef6dc822929f8436c29927b703c5c48;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index 7a793c71e0..f804af0c00 100644 --- a/mod/mood.php +++ b/mod/mood.php @@ -12,8 +12,8 @@ function mood_init(&$a) { $uid = local_user(); $verb = notags(trim($_GET['verb'])); - - if(! $verb) + + if(! $verb) return; $verbs = get_mood_verbs(); @@ -30,7 +30,7 @@ function mood_init(&$a) { 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), @@ -62,7 +62,7 @@ function mood_init(&$a) { $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); $arr = array(); - + $arr['guid'] = get_guid(32); $arr['uid'] = $uid; $arr['uri'] = $uri; $arr['parent-uri'] = (($parent_uri) ? $parent_uri : $uri); @@ -90,18 +90,18 @@ function mood_init(&$a) { $item_id = item_store($arr); if($item_id) { - q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1", + 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"); + proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id); } call_hooks('post_local_end', $arr); - proc_run('php',"include/notifier.php","like","$post_id"); + proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $post_id); return; } @@ -139,4 +139,4 @@ function mood_content(&$a) { return $o; -} \ No newline at end of file +}