Author: Andreas Heigl (heiglandreas) Committer: GitHub (web-flow) Pusher: derickr Date: 2024-02-17T12:10:21Z
Commit: https://github.com/php/web-news/commit/e0ad27f52b19c20059ab4f38a3f8c6c703f6796a Raw diff: https://github.com/php/web-news/commit/e0ad27f52b19c20059ab4f38a3f8c6c703f6796a.diff Adapt input to changed colobus output (#15) Colobus seems to no longer output the byte-size of the messages. Therefore I removed that value from the list so that we get at least the number of lines back into the interface Changed paths: M lib/Web/News/Nntp.php Diff: diff --git a/lib/Web/News/Nntp.php b/lib/Web/News/Nntp.php index 861af3b..837c022 100644 --- a/lib/Web/News/Nntp.php +++ b/lib/Web/News/Nntp.php @@ -144,7 +144,7 @@ public function getArticlesOverview($group, $start, $pageSize = 20) } $line = rtrim($line); - list($n, $subject, $author, $date, $messageId, $references, $bytes, $lines, $extra) = explode("\t", $line, 9); + list($n, $subject, $author, $date, $messageId, $references, $lines, $extra) = explode("\t", $line, 9); $overview['articles'][$n] = [ 'subject' => $subject, @@ -152,7 +152,6 @@ public function getArticlesOverview($group, $start, $pageSize = 20) 'date' => $date, 'messageId' => $messageId, 'references' => $references, - 'bytes' => $bytes, 'lines' => $lines, 'extra' => $extra, ];