X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagger.php;h=adb1c89f46731a30ffa67c590cd72e012cadc06f;hb=a19a7dc2a0c0a22fd306e162383ef7117c1baca2;hp=63e7f2ca80d490ca0357d0f3eeb4d2c75ca35ef8;hpb=ba0d3b2435501a89500542b18e3e24e471eb8fb4;p=friendica.git diff --git a/mod/tagger.php b/mod/tagger.php index 63e7f2ca80..adb1c89f46 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -1,6 +1,6 @@ argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : 0); + $item_id = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(trim(DI::args()->getArgv()[1])) : 0); Logger::log('tagger: tag ' . $term . ' item ' . $item_id); - $item = Item::selectFirst([], ['id' => $item_id]); + $item = Post::selectFirst([], ['id' => $item_id]); if (!$item_id || !DBA::isResult($item)) { Logger::log('tagger: no item ' . $item_id); @@ -175,7 +176,9 @@ EOT; Hook::callAll('post_local_end', $arr); - Worker::add(PRIORITY_HIGH, "Notifier", Delivery::POST, $post_id); + $post = Post::selectFirst(['uri-id', 'uid'], ['id' => $post_id]); + + Worker::add(PRIORITY_HIGH, "Notifier", Delivery::POST, $post['uri-id'], $post['uid']); exit(); }