From 9dd41562a460396a8d98466f77a75d901adaa6df Mon Sep 17 00:00:00 2001 From: Deimos Date: Mon, 13 Jan 2020 16:15:14 -0700 Subject: [PATCH] Include ignored topics in Your Bookmarks page If a user both bookmarks and ignores a topic, we should still show it in the bookmarks page. They can unbookmark it if they don't want it in there. --- tildes/tildes/views/bookmarks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tildes/tildes/views/bookmarks.py b/tildes/tildes/views/bookmarks.py index 64d81be..2ae35e6 100644 --- a/tildes/tildes/views/bookmarks.py +++ b/tildes/tildes/views/bookmarks.py @@ -42,6 +42,9 @@ def get_bookmarks( .order_by(desc(bookmark_cls.created_time)) ) + if post_cls == Topic: + query = query.include_ignored() + if before: query = query.before_id36(before)