mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[GithubIssueBridge] Fix notice with reviews (#2589)
Some timeline items, like review threads and the first comment on PRs, have no header, so this handles the first comment and adds a generic title if that doesn't work.
This commit is contained in:
parent
d6695c0e73
commit
8aa091beda
@ -128,9 +128,8 @@ class GithubIssueBridge extends BridgeAbstract {
|
|||||||
|
|
||||||
$author = $comment->find('.author', 0)->plaintext;
|
$author = $comment->find('.author', 0)->plaintext;
|
||||||
|
|
||||||
$title .= ' / ' . trim(
|
$header = $comment->find('.timeline-comment-header > h3', 0);
|
||||||
$comment->find('.timeline-comment-header-text', 0)->plaintext
|
$title .= ' / ' . ($header ? $header->plaintext : 'Activity');
|
||||||
);
|
|
||||||
|
|
||||||
$time = $comment->find('relative-time', 0);
|
$time = $comment->find('relative-time', 0);
|
||||||
if ($time === null) {
|
if ($time === null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user