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,12 +106,8 @@ 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'}))
|
|
||||||
);
|
|
||||||
my $item_link =
|
|
||||||
$self->url_for(
|
|
||||||
single_thread => {thread_id => $thread->{'id'}}
|
single_thread => {thread_id => $thread->{'id'}}
|
||||||
)->to_abs;
|
)->to_abs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user