Allow processing of forum posts through mentions in addons

This commit is contained in:
Max Kostikov 2019-10-03 18:28:29 +02:00
parent b6db1898b1
commit 6feb864c38

View File

@ -2029,7 +2029,7 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
// if it's a sourced post, call the post_local hooks as if it were
// posted locally so that crosspost connectors will be triggered.
if(check_item_source($arr['uid'], $arr)) {
if(check_item_source($arr['uid'], $arr) || ($channel['xchan_pubforum'] == 1)) {
/**
* @hooks post_local
* Called when an item has been posted on this machine via mod/item.php (also via API).