remove unused context processor

This commit is contained in:
Sascha Ißbrücker 2024-08-31 19:10:42 +02:00
parent 5eadb3ede3
commit 79bf4b38c6
2 changed files with 0 additions and 15 deletions

View file

@ -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): def app_version(request):
return {"app_version": utils.app_version} return {"app_version": utils.app_version}

View file

@ -73,7 +73,6 @@ TEMPLATES = [
"django.contrib.auth.context_processors.auth", "django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages", "django.contrib.messages.context_processors.messages",
"bookmarks.context_processors.toasts", "bookmarks.context_processors.toasts",
"bookmarks.context_processors.public_shares",
"bookmarks.context_processors.app_version", "bookmarks.context_processors.app_version",
], ],
}, },