* [PATCH 10/10] feed: fix links to attachments in Atom feed
2016-07-06 7:14 6% [PATCH 0/10] various misc fixes and updates Eric Wong
@ 2016-07-06 7:14 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-07-06 7:14 UTC (permalink / raw)
To: meta
Oops...
---
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 1f88aba..026a069 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -334,7 +334,7 @@ sub feed_entry {
my $mid = $header_obj->header_raw('Message-ID');
defined $mid or return;
$mid = PublicInbox::Hval->new_msgid($mid);
- my $href = $midurl.$mid->as_href;
+ my $href = $midurl . $mid->as_href . '/';
my $date = $header_obj->header('Date');
my $updated = feed_updated($date);
@@ -365,7 +365,7 @@ sub feed_entry {
my $h = '[a-f0-9]';
my (@uuid5) = ($add =~ m!\A($h{8})($h{4})($h{4})($h{4})($h{12})!o);
my $id = 'urn:uuid:' . join('-', @uuid5);
- $s .= qq!</div></content><link\nhref="$href/"/>!.
+ $s .= qq!</div></content><link\nhref="$href"/>!.
"<id>$id</id></entry>";
}
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/10] various misc fixes and updates
@ 2016-07-06 7:14 6% Eric Wong
2016-07-06 7:14 7% ` [PATCH 10/10] feed: fix links to attachments in Atom feed Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-07-06 7:14 UTC (permalink / raw)
To: meta
Close to a milestone with HTML UI consistency!
Eric Wong (10):
scripts/dc-dlvr: ensure temporary files are removed
daemon: disable USR2/TTIN/TTOU/WINCH in workers
hval: get rid of unused parameter for new_msgid
address: attempt to handle comments somewhat
wwwstream: allow undef noop callback
extmsg: disable automatic inbox switching
extmsg: switch to wwwstream for partial match, too
view: fix double-escaping of ghost links
www: use HTML <hr> instead of XHTML <hr />
feed: fix links to attachments in Atom feed
lib/PublicInbox/Address.pm | 6 ++--
lib/PublicInbox/Daemon.pm | 3 +-
lib/PublicInbox/ExtMsg.pm | 73 +++++++++++++++++++++++++++---------------
lib/PublicInbox/Feed.pm | 6 ++--
lib/PublicInbox/Hval.pm | 2 +-
lib/PublicInbox/SearchView.pm | 6 ++--
lib/PublicInbox/Unsubscribe.pm | 2 +-
lib/PublicInbox/View.pm | 17 +++++-----
lib/PublicInbox/WwwStream.pm | 6 ++--
scripts/dc-dlvr | 3 +-
t/address.t | 9 ++++++
11 files changed, 84 insertions(+), 49 deletions(-)
--
EW
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-06 7:14 6% [PATCH 0/10] various misc fixes and updates Eric Wong
2016-07-06 7:14 7% ` [PATCH 10/10] feed: fix links to attachments in Atom feed Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).