1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-11 19:14:09 +02:00

fix: various notice fixes (#3718)

This commit is contained in:
Dag
2023-09-29 19:17:03 +02:00
committed by GitHub
parent b9ec6a0eb4
commit 2172df9fa2
7 changed files with 27 additions and 5 deletions

View File

@@ -260,7 +260,11 @@ class CodebergBridge extends BridgeAbstract
}
$item['author'] = $div->find('a.author', 0)->innertext;
$item['timestamp'] = $div->find('span.time-since', 0)->title;
$timeSince = $div->find('span.time-since', 0);
if ($timeSince) {
$item['timestamp'] = $timeSince->title;
}
$this->items[] = $item;
}