mirror of
https://github.com/friendica/friendica
synced 2024-11-18 09:03:42 +00:00
Issue 11104: Don't cann the addons on Diaspora reshare
This commit is contained in:
parent
ff80e0876e
commit
a97bfb512a
2 changed files with 6 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
|
@ -4100,6 +4100,9 @@ class Diaspora
|
|||
$item['private'] = Item::PUBLIC;
|
||||
}
|
||||
|
||||
// Don't trigger the addons
|
||||
$item['api_source'] = false;
|
||||
|
||||
return Item::insert($item, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue