From 5ee2175a3f414dcac9e5725dcd1be1966059ba8a Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Sun, 8 Feb 2026 14:24:45 -0500 Subject: [PATCH] Serve feeds as application/xml so browsers render instead of download Also add target=_blank to subscribe page feed links. --- make_post_sell/templates/subscribe.j2 | 4 ++-- make_post_sell/views/feeds.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/make_post_sell/templates/subscribe.j2 b/make_post_sell/templates/subscribe.j2 index d5d6834..ad21517 100644 --- a/make_post_sell/templates/subscribe.j2 +++ b/make_post_sell/templates/subscribe.j2 @@ -123,9 +123,9 @@
Other Ways to Follow

- RSS Feed + RSS Feed  |  - Atom Feed + Atom Feed

diff --git a/make_post_sell/views/feeds.py b/make_post_sell/views/feeds.py index f0a119d..e234a62 100644 --- a/make_post_sell/views/feeds.py +++ b/make_post_sell/views/feeds.py @@ -228,14 +228,14 @@ def rss_view(request): if not shop: response = Response(body="") - response.content_type = "application/rss+xml" + response.content_type = "application/xml" return response products, content = get_public_items(shop) xml = build_rss_xml(request, shop, products, content) response = Response(body=f"\n{xml}") - response.content_type = "application/rss+xml" + response.content_type = "application/xml" return response @@ -247,12 +247,12 @@ def atom_view(request): if not shop: response = Response(body="") - response.content_type = "application/atom+xml" + response.content_type = "application/xml" return response products, content = get_public_items(shop) xml = build_atom_xml(request, shop, products, content) response = Response(body=f"\n{xml}") - response.content_type = "application/atom+xml" + response.content_type = "application/xml" return response