Merge pull request #11114 from annando/issue-11104
Issue 11104: Don't execute the addons on Diaspora reshare
This commit is contained in:
commit
a06ab22f24
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