protected function getDataFromHubs($hubId, $fromTimestamp, $duplicates = []) { $model = new HubRssFeedModel(static::getFeedLanguage()); $v3 = $model->getRealDataV3($hubId, null, true); foreach ($v3 as $key => $item) { if ($item['timestamp'] < $fromTimestamp) { unset($v3[$key]); } else { //add url as item for compatibility $v3[$key]['url'] = $key; } } $hubData = $this->removeDuplicates($v3, $duplicates); $out = $this->findIdForUrls($hubData, self::SOURCE_HUB . '_' . $hubId); return $out; }