mirror of
https://github.com/YGGverse/Pulsar.git
synced 2025-03-13 05:41:21 +00:00
make channel links relative
This commit is contained in:
parent
7c47b94760
commit
536e15847e
@ -79,7 +79,7 @@ class Nex implements MessageComponentInterface
|
||||
switch (true)
|
||||
{
|
||||
// Item
|
||||
case (bool) preg_match('/^\/(?<id>\d+)($|\.gmi)$/i', $request, $attribute):
|
||||
case (bool) preg_match('/\/(?<id>\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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user