Issue 11104: Don't cann the addons on Diaspora reshare

This commit is contained in:
Michael 2021-12-20 21:16:00 +00:00
parent ff80e0876e
commit a97bfb512a
2 changed files with 6 additions and 1 deletions

View file

@ -949,7 +949,9 @@ class Item
$item['parent'] = $parent_id;
// Trigger automatic reactions for addons
$item['api_source'] = true;
if (!isset($item['api_source'])) {
$item['api_source'] = true;
}
// We have to tell the hooks who we are - this really should be improved
if (!local_user()) {

View file

@ -4100,6 +4100,9 @@ class Diaspora
$item['private'] = Item::PUBLIC;
}
// Don't trigger the addons
$item['api_source'] = false;
return Item::insert($item, true);
}
}