diff options
author | Eric Wong <e@80x24.org> | 2016-02-08 07:37:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-02-08 07:40:07 +0000 |
commit | a599fed57ab19616feb803b109fc0a0802f1304c (patch) | |
tree | 7e4878e0cf03060c4eb34addfdbe2d7684d36c22 | |
parent | 0af0bd903b9b5aede71155ce8756e01a229b40bb (diff) | |
download | public-inbox-a599fed57ab19616feb803b109fc0a0802f1304c.tar.gz |
It seems we need to declare "alternate" and "text/html" at least for feed readers.
-rw-r--r-- | lib/PublicInbox/Feed.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 65514eb6..bbc89f2f 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -55,7 +55,8 @@ sub atom_header { qq(<?xml version="1.0" encoding="us-ascii"?>\n) . qq{<feed\nxmlns="http://www.w3.org/2005/Atom">} . qq{$title} . - qq(<link\nhref="$feed_opts->{url}"/>) . + qq(<link\nrel="alternate"\ntype="text/html") . + qq(\nhref="$feed_opts->{url}"/>) . qq(<link\nrel="self"\nhref="$feed_opts->{atomurl}"/>) . qq(<id>mailto:$feed_opts->{id_addr}</id>); } |