Skip to content

Commit

Permalink
remove unused context processor
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker committed Aug 31, 2024
1 parent 5eadb3e commit 79bf4b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
14 changes: 0 additions & 14 deletions bookmarks/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 0 additions & 1 deletion siteroot/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"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",
],
},
Expand Down

0 comments on commit 79bf4b3

Please sign in to comment.