[web-news] master: Adapt input to changed colobus output (#15)
| From: | Andreas Heigl via GitHub | Date: | Sat, 17 Feb 2024 12:24:08 +0000 |
| Subject: | [web-news] master: Adapt input to changed colobus output (#15) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31497@lists.php.net to get a copy of this message | ||
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,
];