Support for message delivering via uri-id

This commit is contained in:
Michael 2021-02-14 14:24:48 +00:00
commit 6e1483545e
10 changed files with 95 additions and 56 deletions

View file

@ -176,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();
}