Make date format static for now
This commit is contained in:
parent
a3b76dabb2
commit
5f030d5e6b
|
@ -75,11 +75,6 @@ sub startup($self) {
|
||||||
$self->remark->per_page($remarks_per_page)
|
$self->remark->per_page($remarks_per_page)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (my $date_format = $self->config->{'date_format'}) {
|
|
||||||
$self->thread->date_format($date_format);
|
|
||||||
$self->remark->date_format($date_format);
|
|
||||||
}
|
|
||||||
|
|
||||||
$self->asset->process('main.css', 'css/PostText.css');
|
$self->asset->process('main.css', 'css/PostText.css');
|
||||||
|
|
||||||
push @{$self->commands->namespaces}, 'PostText::Command';
|
push @{$self->commands->namespaces}, 'PostText::Command';
|
||||||
|
@ -120,6 +115,8 @@ sub startup($self) {
|
||||||
->to('thread#flag')
|
->to('thread#flag')
|
||||||
->name('flag_thread');
|
->name('flag_thread');
|
||||||
|
|
||||||
|
#$thread->get('feed', [format => ['rss']])->to('thread#feed');
|
||||||
|
|
||||||
# Remark
|
# Remark
|
||||||
my $remark = $r->any('/remark');
|
my $remark = $r->any('/remark');
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package PostText::Controller::Thread;
|
package PostText::Controller::Thread;
|
||||||
|
|
||||||
use Mojo::Base 'Mojolicious::Controller', -signatures;
|
use Mojo::Base 'Mojolicious::Controller', -signatures;
|
||||||
|
#use XML::RSS;
|
||||||
|
|
||||||
sub create($self) {
|
sub create($self) {
|
||||||
my $v;
|
my $v;
|
||||||
|
@ -90,6 +91,17 @@ sub by_page($self) {
|
||||||
$self->render;
|
$self->render;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sub feed($self) {
|
||||||
|
# my $threads = $self->thread->by_page(1);
|
||||||
|
# my $rss = XML::RSS->new(version => '2.0');
|
||||||
|
#
|
||||||
|
# $rss->channel(
|
||||||
|
# title => 'Post::Text',
|
||||||
|
# description => 'In UTF-8 we trust. 🫡',
|
||||||
|
# link => $self->url_for('thread_list')->to_abs,
|
||||||
|
# );
|
||||||
|
#}
|
||||||
|
|
||||||
sub bump($self) {
|
sub bump($self) {
|
||||||
my $thread_id = $self->param('thread_id');
|
my $thread_id = $self->param('thread_id');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user