]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Use rawContent for Special Options to avoid a protected options() method
[friendica.git] / src / Model / Item.php
index ca5e4bec02b94fa4231bba30082a09f0a6f50a56..f923fe2691d84109e6ec20f0e918fed26a4d2da6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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()) {