New Markdown behavior for RSS feeds

This commit is contained in:
swagg boi 2025-05-02 14:51:14 -04:00
parent 79836f3f6f
commit 18a2ccb667
2 changed files with 6 additions and 2 deletions

View File

@ -147,7 +147,9 @@ sub feed($self) {
);
for my $remark (@{$remarks}) {
my $description = $self->markdown($remark->{'body'});
my $description = $remark->{'markdown'}
? $self->markdown($remark->{'body'})
: $remark->{'body'};
my $item_link = $self->url_for(
single_remark => {remark_id => $remark->{'id'}}
)->to_abs;

View File

@ -150,7 +150,9 @@ sub feed($self) {
);
for my $thread (@{$threads}) {
my $description = $self->markdown($thread->{'body'});
my $description = $thread->{'markdown'}
? $self->markdown($thread->{'body'})
: $thread->{'body'};
my $item_link = $self->url_for(
single_thread => {thread_id => $thread->{'id'}}
)->to_abs;