use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
+use Friendica\Core\Worker;
use Friendica\Network\Probe;
require_once 'include/Photo.php';
// send the notification upstream/downstream as the case may be
if ($rr['visible']) {
- proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
+ Worker::add(PRIORITY_HIGH, "notifier", "drop", $drop_id);
}
}
}
photo_albums($page_owner_uid, true);
if ($i[0]['visible']) {
- proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
+ Worker::add(PRIORITY_HIGH, "notifier", "drop", $drop_id);
}
}
}
$item_id = item_store($arr);
if ($item_id) {
- proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id);
+ Worker::add(PRIORITY_HIGH, "notifier", "tag", $item_id);
}
}
}
photo_albums($page_owner_uid, true);
if ($visible) {
- proc_run(PRIORITY_HIGH, "include/notifier.php", 'wall-new', $item_id);
+ Worker::add(PRIORITY_HIGH, "notifier", 'wall-new', $item_id);
}
call_hooks('photo_post_end',intval($item_id));