Skip to content

Commit 2d80280

Browse files
committed
Never send bookmark data
1 parent 9aa1855 commit 2d80280

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

readthedocs/restapi/views/footer_views.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,6 @@ def footer_html(request):
4040
else:
4141
path = ""
4242

43-
host = request.get_host()
44-
if settings.PRODUCTION_DOMAIN in host and request.user.is_authenticated():
45-
show_bookmarks = True
46-
try:
47-
bookmark = Bookmark.objects.get(
48-
user=request.user,
49-
project=project,
50-
version=version,
51-
page=page_slug,
52-
)
53-
except (Bookmark.DoesNotExist, Bookmark.MultipleObjectsReturned, Exception):
54-
bookmark = None
55-
else:
56-
show_bookmarks = False
57-
bookmark = None
58-
5943
if version.type == 'tag' and version.project.has_pdf(version.slug):
6044
print_url = 'https://keminglabs.com/print-the-docs/quote?project={project}&version={version}'.format(
6145
project=project.slug,
@@ -77,8 +61,8 @@ def footer_html(request):
7761
show_promo = False
7862

7963
context = Context({
80-
'show_bookmarks': show_bookmarks,
81-
'bookmark': bookmark,
64+
'show_bookmarks': False,
65+
'bookmark': None,
8266
'project': project,
8367
'path': path,
8468
'downloads': version.get_downloads(pretty=True),

0 commit comments

Comments
 (0)