]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Storing the mail header in the item
[friendica.git] / src / Model / Item.php
index 159fac455b9dd96f33c75da491fab12bda68b351..0b6c1c8bf22620c4c972185ff1d26548ddd07015 100644 (file)
@@ -291,12 +291,10 @@ class Item extends BaseObject
                                $row['object-type'] = Activity\ObjectType::NOTE;
                        }
                } elseif (array_key_exists('verb', $row) && in_array($row['verb'], ['', Activity::POST, Activity::SHARE])) {
-                       // Posts don't have an object or target - but having tags or files.
+                       // Posts don't have a target - but having tags or files.
                        // We safe some performance by building tag and file strings only here.
-                       // We remove object and target since they aren't used for this type.
-                       if (array_key_exists('object', $row)) {
-                               $row['object'] = '';
-                       }
+                       // We remove the target since they aren't used for this type.
+                       // In mail posts we do store some mail header data in the object.
                        if (array_key_exists('target', $row)) {
                                $row['target'] = '';
                        }