diff --git a/src/Controller/Server/Nex.php b/src/Controller/Server/Nex.php index b3fdb4a..a982be9 100644 --- a/src/Controller/Server/Nex.php +++ b/src/Controller/Server/Nex.php @@ -79,7 +79,7 @@ class Nex implements MessageComponentInterface switch (true) { // Item - case (bool) preg_match('/^\/(?\d+)($|\.gmi)$/i', $request, $attribute): + case (bool) preg_match('/\/(?\d+)($|\.gmi)$/i', $request, $attribute): $lines = []; @@ -172,28 +172,13 @@ class Nex implements MessageComponentInterface foreach ((array) $this->_database->getChannelItems($channel->id, 0, 20) as $channelItem) { $lines[] = sprintf( - '=> /%d.gmi %s', + '=> %d.gmi %s', $channelItem->id, \Yggverse\Pulsar\Model\Filter::string( $channelItem->title ) ); - /* @TODO make gemfeed date optional - $lines[] = sprintf( - '=> /%d.gmi %s %s', - $channelItem->id, - $channelItem->pubTime ? - date( - 'Y-m-d', - $channelItem->pubTime - ) : '', - \Yggverse\Pulsar\Model\Filter::string( - $channelItem->title - ) - ); - */ - if ($channelItem->description) { $lines[] = \Yggverse\Pulsar\Model\Filter::text(