mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
remove unused context processor
This commit is contained in:
parent
5eadb3ede3
commit
79bf4b38c6
2 changed files with 0 additions and 15 deletions
|
@ -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}
|
||||||
|
|
|
@ -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",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue