]> git.mxchange.org Git - friendica.git/commitdiff
unset several table fields before distribution
authorMichael <heluecht@pirati.ca>
Tue, 15 Feb 2022 06:21:46 +0000 (06:21 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 15 Feb 2022 06:21:46 +0000 (06:21 +0000)
src/Model/Item.php

index fd0dbde2bfd122f99ca6208ed18c56eafe8366ae..46f41e9a93c339e1c2538c6686ec3bddb0415599 100644 (file)
@@ -1485,6 +1485,7 @@ class Item
                        return 0;
                }
 
+               // Data from the "post-user" table
                unset($item['id']);
                unset($item['mention']);
                unset($item['starred']);
@@ -1493,10 +1494,14 @@ class Item
                unset($item['pinned']);
                unset($item['ignored']);
                unset($item['pubmail']);
-
                unset($item['event-id']);
                unset($item['hidden']);
                unset($item['notification-type']);
+               unset($item['post-reason']);
+
+               // Data from the "post-delivery-data" table
+               unset($item['postopts']);
+               unset($item['inform']);
 
                $item['uid'] = $uid;
                $item['origin'] = 0;