Clean up RSS feed stuff and use full article as description

This commit is contained in:
swagg boi 2023-05-30 21:48:22 -04:00
parent 3b18ae17b6
commit 27e4e1eee7

View file

@ -107,16 +107,14 @@ sub feed($self) {
lastBuildDate => time2str('%a, %d %b %Y %X %z', time), lastBuildDate => time2str('%a, %d %b %Y %X %z', time),
atom => { atom => {
link => { link => {
href => "$rss_link", # I have no idea why this needs quotes?? href => $rss_link,
rel => 'self', rel => 'self',
type => 'application/rss+xml' type => 'application/rss+xml'
} }
} });
);
for my $thread (@{$threads}) { for my $thread (@{$threads}) {
my $description = my $description = $self->markdown($thread->{'body'});
$self->markdown($self->truncate_text($thread->{'body'}));
my $item_link = $self->url_for( my $item_link = $self->url_for(
single_thread => {thread_id => $thread->{'id'}} single_thread => {thread_id => $thread->{'id'}}
)->to_abs; )->to_abs;