Some cleanup
This commit is contained in:
parent
c0aa7bed11
commit
f88b75fdd4
|
@ -3,7 +3,6 @@ package PostText::Controller::Thread;
|
||||||
use Mojo::Base 'Mojolicious::Controller', -signatures;
|
use Mojo::Base 'Mojolicious::Controller', -signatures;
|
||||||
use Date::Format;
|
use Date::Format;
|
||||||
use XML::RSS;
|
use XML::RSS;
|
||||||
use XML::Entities;
|
|
||||||
|
|
||||||
sub create($self) {
|
sub create($self) {
|
||||||
my $v;
|
my $v;
|
||||||
|
@ -107,14 +106,10 @@ sub feed($self) {
|
||||||
|
|
||||||
for my $thread (@{$threads}) {
|
for my $thread (@{$threads}) {
|
||||||
my $description =
|
my $description =
|
||||||
XML::Entities::decode(
|
$self->markdown($self->truncate_text($thread->{'body'}));
|
||||||
'all',
|
my $item_link = $self->url_for(
|
||||||
$self->markdown($self->truncate_text($thread->{'body'}))
|
single_thread => {thread_id => $thread->{'id'}}
|
||||||
);
|
)->to_abs;
|
||||||
my $item_link =
|
|
||||||
$self->url_for(
|
|
||||||
single_thread => {thread_id => $thread->{'id'}}
|
|
||||||
)->to_abs;
|
|
||||||
|
|
||||||
$rss->add_item(
|
$rss->add_item(
|
||||||
title => $thread->{'title'},
|
title => $thread->{'title'},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user