]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Insert a `user-contact` for every contact
[friendica.git] / src / Model / Item.php
index beb7db5764773a41f2909bead2446d8e644a5f1d..5cc72b05800bc15ebc60a92effb08baf3c553b8e 100644 (file)
@@ -1160,8 +1160,6 @@ class Item
 
                Post\UserNotification::setNotification($posted_item['uri-id'], $posted_item['uid']);
 
-               check_user_notification($posted_item['uri-id'], $posted_item['uid']);
-
                // Distribute items to users who subscribed to their tags
                self::distributeByTags($posted_item);
 
@@ -2757,6 +2755,8 @@ class Item
                                $filter_reasons[] = DI::l10n()->t('Content warning: %s', $item['content-warning']);
                        }
 
+                       $item['attachments'] = $attachments;
+
                        $hook_data = [
                                'item' => $item,
                                'filter_reasons' => $filter_reasons