]> git.mxchange.org Git - friendica.git/blobdiff - mod/mood.php
Remove unused upubkey and uprvkey from queries
[friendica.git] / mod / mood.php
index e80a7f0976e6550ac60c20e6b48db9fe63856472..bffe37f3be7ced95cff2f60dbd5b3c8d71159b3e 100644 (file)
@@ -1,10 +1,14 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Core\Worker;
+use Friendica\Database\DBM;
+
 require_once('include/security.php');
 require_once('include/bbcode.php');
 require_once('include/items.php');
 
-
 function mood_init(App $a) {
 
        if (! local_user()) {
@@ -37,7 +41,7 @@ function mood_init(App $a) {
                        intval($parent),
                        intval($uid)
                );
-               if (dbm::is_result($r)) {
+               if (DBM::is_result($r)) {
                        $parent_uri = $r[0]['uri'];
                        $private    = $r[0]['private'];
                        $allow_cid  = $r[0]['allow_cid'];
@@ -92,17 +96,17 @@ function mood_init(App $a) {
        $item_id = item_store($arr);
        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;
 }