]> 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 441808ea91116fd91be00de98554c39d15d51fa0..5cc72b05800bc15ebc60a92effb08baf3c553b8e 100644 (file)
@@ -1039,7 +1039,7 @@ class Item
                                }
 
                                $event_id = Event::store($ev);
-                               $item = Event::getItemArrayForId($event_id, $item);
+                               $item = Event::getItemArrayForImportedId($event_id, $item);
 
                                Logger::info('Event was stored', ['id' => $event_id]);
                        }
@@ -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