X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmood.php;h=c693e7cdc980872949842a11634544ee60ee143b;hb=28eb5d57a72aae22428061b26b90195f7feacadf;hp=5e6ca0fcfc068533751908e8bc2e4d91ba7beed1;hpb=e2f8673076165c402782332b42ee744b1ffc7969;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index 5e6ca0fcfc..c693e7cdc9 100644 --- a/mod/mood.php +++ b/mod/mood.php @@ -1,14 +1,16 @@ get_hostname(),$uid); - $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); + $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); $arr = array(); $arr['guid'] = get_guid(32); @@ -91,26 +93,26 @@ function mood_init(&$a) { $item_id = item_store($arr); if($item_id) { q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d", - dbesc($a->get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id), + dbesc(App::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; } -function mood_content(&$a) { +function mood_content(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; }