X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ftagger.php;h=2e5116df8dcd445f6e03461ad0ed369dee5d4aa3;hb=7789ea25079801ee1425368e9bf2f7ce80d16d88;hp=86a6ff69f302c3d97ea1b2100716a7e417e43e90;hpb=05cac4c186caffd6027042b2b286423151ecfc9f;p=friendica.git diff --git a/mod/tagger.php b/mod/tagger.php index 86a6ff69f3..2e5116df8d 100644 --- a/mod/tagger.php +++ b/mod/tagger.php @@ -1,6 +1,6 @@ $item_id]); + $item = Post::selectFirst([], ['id' => $item_id]); if (!$item_id || !DBA::isResult($item)) { Logger::log('tagger: no item ' . $item_id); @@ -136,7 +137,7 @@ EOT; $arr['wall'] = $item['wall']; $arr['gravity'] = GRAVITY_COMMENT; $arr['parent'] = $item['id']; - $arr['parent-uri'] = $item['uri']; + $arr['thr-parent'] = $item['uri']; $arr['owner-name'] = $item['author-name']; $arr['owner-link'] = $item['author-link']; $arr['owner-avatar'] = $item['author-avatar']; @@ -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(); }