disable rss feeds

This commit is contained in:
Izalia Mae 2020-03-05 16:10:51 -05:00
parent 705f35f7a6
commit b0acb14b92

View file

@ -92,6 +92,10 @@ async def http_filter(app, handler):
real_ip = request.headers.get('X-Real-Ip')
ua_ip = dig(ua_domain)
# Disable rss feeds
if request.path.endswith('.rss'):
return error(403, 'RSS feeds disabled')
# add logged in user data to the request for the frontend
request['user'] = user_data