recipe links

This commit is contained in:
Joren de Graaf
2026-10-23 14:30:58 +02:00
parent 5b986134be
commit 4d76a2bc9c
52 changed files with 2698 additions and 19 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class DemoAccountPolicyMiddleware:
response = HttpResponse('Demo request limit reached. Try again in a minute.', status=429)
response['Retry-After'] = '60'
return response
forbidden = (path.startswith(('/o/', '/admin/', '/food/settings/tokens/')) or
forbidden = (path.startswith(('/o/', '/admin/', '/food/settings/tokens/', '/settings/home-assistant/')) or
path == '/settings/notifications/ntfy/test/' or
(request.method == 'POST' and path in {
'/food/search/openfoodfacts/', '/food/import/openfoodfacts/',