RSS validation errors

This commit is contained in:
swag 2023-05-10 15:46:33 -04:00
parent e800d9a600
commit d83bc4b593
2 changed files with 1 additions and 4 deletions

View File

@ -101,7 +101,7 @@ sub feed($self) {
title => 'Post::Text',
description => 'In UTF-8 we trust. 🫡',
link => $chan_link,
lastBuildDate => time2str('%a, %d %b %Y %X %Z', time)
lastBuildDate => time2str('%a, %d %b %Y %X %z', time)
);
for my $thread (@{$threads}) {
@ -115,8 +115,6 @@ sub feed($self) {
title => $thread->{'title'},
link => $item_link,
description => $description,
author => $thread->{'author'},
guid => $thread->{'id'},
pubDate => $thread->{'date'}
);
}

View File

@ -104,7 +104,6 @@ sub feed($self) {
$self->pg->db->query(<<~'END_SQL', $date_format)->hashes;
SELECT thread_id AS id,
TO_CHAR(thread_date, ?) AS date,
thread_author AS author,
thread_title AS title,
thread_body AS body
FROM threads