Compare commits

..

No commits in common. "main" and "plain_text" have entirely different histories.

4 changed files with 4 additions and 7 deletions

View File

@ -7,4 +7,4 @@ requires 'XML::RSS';
requires 'Text::Markdown';
requires 'HTML::Restrict';
requires 'Roman::Unicode';
requires 'SlapbirdAPM::Agent::Mojo', '>= 0.012';
requires 'SlapbirdAPM::Agent::Mojo';

View File

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

View File

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

View File

@ -11,6 +11,7 @@ ALTER COLUMN markdown_status
SET NOT NULL;
-- Do the same for remarks
ALTER TABLE remarks
ADD COLUMN markdown_status BOOLEAN;