Allow addons to process forum posts published through mentions

This commit is contained in:
Max Kostikov
2019-10-05 10:31:47 +02:00
committed by Mario
parent 0c2438b36a
commit 79b0a6ba9c
2 changed files with 4 additions and 7 deletions

View File

@@ -1764,7 +1764,7 @@ class Libzot {
// 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).