From 27e4e1eee7f8edc04b84551e2deeda0859729a1e Mon Sep 17 00:00:00 2001 From: swag Date: Tue, 30 May 2023 21:48:22 -0400 Subject: [PATCH] Clean up RSS feed stuff and use full article as description --- lib/PostText/Controller/Thread.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/PostText/Controller/Thread.pm b/lib/PostText/Controller/Thread.pm index f7ac201..48da0d2 100644 --- a/lib/PostText/Controller/Thread.pm +++ b/lib/PostText/Controller/Thread.pm @@ -107,16 +107,14 @@ sub feed($self) { lastBuildDate => time2str('%a, %d %b %Y %X %z', time), atom => { link => { - href => "$rss_link", # I have no idea why this needs quotes?? + href => $rss_link, rel => 'self', type => 'application/rss+xml' } - } - ); + }); for my $thread (@{$threads}) { - my $description = - $self->markdown($self->truncate_text($thread->{'body'})); + my $description = $self->markdown($thread->{'body'}); my $item_link = $self->url_for( single_thread => {thread_id => $thread->{'id'}} )->to_abs;