rss link fix

item links were pointing to the wrong thing. oops.
This commit is contained in:
RXP 2025-05-20 17:28:43 -06:00
parent 4c9fbc3ded
commit a21cc74241
Signed by: ro
GPG key ID: 976711B5057688B7

View file

@ -39,10 +39,14 @@ class RSSController extends Controller
$html = urldecode($item['html']); $html = urldecode($item['html']);
$updatedAt = Carbon::parse($item['rawUpdated']); $updatedAt = Carbon::parse($item['rawUpdated']);
$date = $updatedAt->format('D, d M Y H:i:s O'); $date = $updatedAt->format('D, d M Y H:i:s O');
$link = $global['base_url'] . "/" . $item['path'] . "/" . $item['slug'];
if ($global['dynamicRender'] != "true") {
$link = $link . ".html";
}
$feedContent .= " $feedContent .= "
<item> <item>
<title>{$title}</title> <title>{$title}</title>
<link>{$global['base_url']}/rss/feed/item/{$item['uuid']}</link> <link>{$link}</link>
<guid>{$global['base_url']}/rss/feed/item/{$item['uuid']}</guid> <guid>{$global['base_url']}/rss/feed/item/{$item['uuid']}</guid>
<pubDate>{$date}</pubDate> <pubDate>{$date}</pubDate>
<description><![CDATA[{$html}]]></description> <description><![CDATA[{$html}]]></description>