From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C70191FAAF; Tue, 1 Sep 2015 09:30:42 +0000 (UTC) Date: Tue, 1 Sep 2015 09:30:42 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [13/11 PATCH] feed: fix tag in Atom feed Message-ID: <20150901093042.GA3755@dcvr.yhbt.net> References: <1441097728-31950-1-git-send-email-e@80x24.org> <1441097728-31950-6-git-send-email-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441097728-31950-6-git-send-email-e@80x24.org> List-Id: Fixes commit d44ed46ee92c78aaaed64975c4d6846613963be4 ("implement per-thread Atom feeds") --- lib/PublicInbox/Feed.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 4420fde..9615880 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -331,6 +331,7 @@ sub add_to_feed { my $date = $header_obj->header('Date'); $date = PublicInbox::Hval->new_oneline($date); $date = feed_date($date->raw) or return 0; + $date = "$date"; my $title = mime_header($header_obj, 'Subject') or return 0; $title = title_tag($title); @@ -342,8 +343,7 @@ sub add_to_feed { $email = PublicInbox::Hval->new_oneline($email)->as_html; if (delete $feed_opts->{emit_header}) { - $fh->write(atom_header($feed_opts, $title) . - "$date"); + $fh->write(atom_header($feed_opts, $title) . $date); } $fh->write("$name$email" . "$title$date" . -- EW