getVerb(); if ($verb === 'object_shared') { $message = $comment->getMessage(); $data = json_decode($message, true); if (isset($data['parameters']['share'])) { $shareIds[] = $data['parameters']['share']; } } } if (!empty($shareIds)) { // Retrieved Share objects will be cached by // the RoomShareProvider and returned from the cache to // the Parser\SystemMessage without additional database queries. $shares = $this->shareProvider->getSharesByIds($shareIds); // Preload files metadata as well $fileIds = array_filter(array_map(static fn (IShare $share) => $share->getNodeId(), $shares)); $this->filesMetadataCache->preloadMetadata($fileIds); } } }