use Friendica\App;
use Friendica\Core\System;
+use Friendica\Core\Worker;
require_once("include/Contact.php");
require_once("include/ostatus.php");
$changed = true;
if ($entrytype == DFRN_REPLY_RC) {
- proc_run(PRIORITY_HIGH, "include/notifier.php","comment-import", $current["id"]);
+ Worker::add(PRIORITY_HIGH, "notifier","comment-import", $current["id"]);
}
}
if ($posted_id && $parent && ($entrytype == DFRN_REPLY_RC)) {
logger("Notifying followers about comment ".$posted_id, LOGGER_DEBUG);
- proc_run(PRIORITY_HIGH, "include/notifier.php", "comment-import", $posted_id);
+ Worker::add(PRIORITY_HIGH, "notifier", "comment-import", $posted_id);
}
return true;
if ($entrytype == DFRN_REPLY_RC) {
logger("Notifying followers about deletion of post " . $item["id"], LOGGER_DEBUG);
- proc_run(PRIORITY_HIGH, "include/notifier.php","drop", $item["id"]);
+ Worker::add(PRIORITY_HIGH, "notifier","drop", $item["id"]);
}
}
}