Commit 9a82f2c6 authored by Deimos's avatar Deimos

Fix error with filtered topic tag including space

This isn't great, but will fix an error that's actively occurring when
someone filters to a single tag (tag= query var) and also has a filtered
topic tag with a space in it.
parent 3ada432a
......@@ -221,7 +221,9 @@ def get_group_topics( # noqa
# for example, if viewing "ask.survey", don't filter "ask.survey" or "ask"
if tag:
filtered_topic_tags = [
ft for ft in filtered_topic_tags if not tag.descendant_of(ft)
for ft in filtered_topic_tags
if not tag.descendant_of(ft.replace(" ", "_"))
query = query.filter(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment