Probing for Zot improved and Pumpio removed

This commit is contained in:
Michael 2024-05-12 23:53:54 +00:00
parent 9e1362ba46
commit 21fc28029a
3 changed files with 83 additions and 271 deletions

View file

@ -386,10 +386,12 @@ class Feed
$orig_plink = $item['plink'];
try {
$item['plink'] = DI::httpClient()->finalUrl($item['plink']);
} catch (TransferException $exception) {
Logger::notice('Item URL couldn\'t get expanded', ['url' => $item['plink'], 'exception' => $exception]);
if (!$dryRun) {
try {
$item['plink'] = DI::httpClient()->finalUrl($item['plink']);
} catch (TransferException $exception) {
Logger::notice('Item URL couldn\'t get expanded', ['url' => $item['plink'], 'exception' => $exception]);
}
}
if (empty($item['title'])) {