diff options
author | zotlabs <mike@macgirvin.com> | 2019-09-26 18:36:06 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-09-26 18:36:06 -0700 |
commit | 02f5fa32af4708877c89a50d5fa8849f6d9e038e (patch) | |
tree | d3067651098c636e6093ada64f3b65881ade1eed /Zotlabs/Daemon/Notifier.php | |
parent | b6590e95b5429ec50eccd3bb9c70ff0127dbd1cb (diff) | |
parent | ec65211d54d07787871befe0e4658a469a735301 (diff) | |
download | volse-hubzilla-02f5fa32af4708877c89a50d5fa8849f6d9e038e.tar.gz volse-hubzilla-02f5fa32af4708877c89a50d5fa8849f6d9e038e.tar.bz2 volse-hubzilla-02f5fa32af4708877c89a50d5fa8849f6d9e038e.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r-- | Zotlabs/Daemon/Notifier.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php index 15dc08908..1d0be10d9 100644 --- a/Zotlabs/Daemon/Notifier.php +++ b/Zotlabs/Daemon/Notifier.php @@ -285,8 +285,21 @@ class Notifier { } if(! in_array(intval($target_item['item_type']), [ ITEM_TYPE_POST ] )) { - logger('notifier: target item not forwardable: type ' . $target_item['item_type'], LOGGER_DEBUG); - return; + $hookinfo=[ + 'targetitem'=>$target_item, + 'deliver'=>false + ]; + if (intval($target_item['item_type'] == ITEM_TYPE_CUSTOM)) { + call_hooks('customitem_deliver',$hookinfo); + } + + if (!$hookinfo['deliver']) { + logger('notifier: target item not forwardable: type ' . $target_item['item_type'], LOGGER_DEBUG); + return; + } + + $target_item = $hookinfo['targetitem']; + } // Check for non published items, but allow an exclusion for transmitting hidden file activities |