more adaption to latest release

This commit is contained in:
Matthew Exon 2023-12-26 13:44:36 +01:00
parent 1d75a40d63
commit 511271ba37

View file

@ -88,10 +88,9 @@ function retriever_module() {}
/**
* @brief Admin page hook for retriever plugin
*
* @param App $a App object (unused)
* @param string $o HTML to append content to (by ref)
*/
function retriever_addon_admin(App $a, string &$o) {
function retriever_addon_admin(string &$o) {
$template = Renderer::getMarkupTemplate('admin.tpl', 'addon/retriever/');
$downloads_per_cron = DI::config()->get('retriever', 'downloads_per_cron');
@ -986,10 +985,9 @@ function retriever_contact_photo_menu(array &$args) {
/**
* @brief Hook for processing new incoming items
*
* @param App $a The App object (by ref)
* @param array $item New item, which has not yet been inserted into database (by ref)
*/
function retriever_post_remote_hook(App &$a, array &$item) {
function retriever_post_remote_hook(array &$item) {
Logger::info('retriever_post_remote_hook: ' . $item['uri'] . ' ' . $item['uid'] . ' ' . $item['contact-id']);
$retriever_rule = get_retriever_rule($item['contact-id'], $item["uid"], false);