1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 16:46:30 +02:00

fix: small notice errors (#3677)

* fix notice

* fix notice

* tweak

* tweaks
This commit is contained in:
Dag
2023-09-20 03:15:15 +02:00
committed by GitHub
parent e6aef73a02
commit 0bf38e5c56
4 changed files with 29 additions and 27 deletions

View File

@@ -181,7 +181,12 @@ class CodebergBridge extends BridgeAbstract
$item['title'] = $message->find('span.message-wrapper', 0)->plaintext;
$item['uri'] = $tr->find('td.sha', 0)->find('a', 0)->href;
$item['author'] = $tr->find('td.author', 0)->plaintext;
$item['timestamp'] = $tr->find('td', 3)->find('span', 0)->title;
$var = $tr->find('td', 3);
$var1 = $var->find('span', 0);
if ($var1) {
$item['timestamp'] = $var1->title;
}
if ($message->find('pre.commit-body', 0)) {
$message->find('pre.commit-body', 0)->style = '';