From 79bf4b38c6283af3a7d1cf03b8301a1726a1da10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 31 Aug 2024 19:10:42 +0200 Subject: [PATCH] remove unused context processor --- bookmarks/context_processors.py | 14 -------------- siteroot/settings/base.py | 1 - 2 files changed, 15 deletions(-) diff --git a/bookmarks/context_processors.py b/bookmarks/context_processors.py index 8e79cf7..1374712 100644 --- a/bookmarks/context_processors.py +++ b/bookmarks/context_processors.py @@ -18,19 +18,5 @@ def toasts(request): } -def public_shares(request): - # Only check for public shares for anonymous users - if not request.user.is_authenticated: - query_set = queries.query_shared_bookmarks( - None, request.user_profile, BookmarkSearch(), True - ) - has_public_shares = query_set.count() > 0 - return { - "has_public_shares": has_public_shares, - } - - return {} - - def app_version(request): return {"app_version": utils.app_version} diff --git a/siteroot/settings/base.py b/siteroot/settings/base.py index 6c3a705..acede34 100644 --- a/siteroot/settings/base.py +++ b/siteroot/settings/base.py @@ -73,7 +73,6 @@ TEMPLATES = [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", "bookmarks.context_processors.toasts", - "bookmarks.context_processors.public_shares", "bookmarks.context_processors.app_version", ], },