geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 3d014404a2f9f01a348a516ad1c9ed03fc603d4f
parent 24681773991d4aeb820ef2eb23f0f9766c6bf06d
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Mon,  3 Aug 2020 12:55:10 -0400

[serve] Improve feed matching

Diffstat:
Mserve/models.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/serve/models.py b/serve/models.py @@ -157,6 +157,10 @@ FROM page AS p JOIN indexable_crawl AS c ON c.page_id == p.id WHERE p.url LIKE '%atom.xml' +OR p.url LIKE '%feed.xml' +OR p.url LIKE '%.rss' +OR p.url LIKE '%.atom' +OR p.content_type IN ('application/atom+xml', 'application/rss+xml') """) return feeds_query.execute()