From cd5e17636bf92256fc7a34f8ce8fe50c7960f320 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sun, 1 Dec 2019 13:10:28 -0700 Subject: [PATCH] Hide Description from link info on topic pages Will probably want to un-hide this or adjust it somehow in the future, but so far it just seems to be a mess most of the time. --- tildes/tildes/views/topic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/views/topic.py b/tildes/tildes/views/topic.py index 19c8814..994676b 100644 --- a/tildes/tildes/views/topic.py +++ b/tildes/tildes/views/topic.py @@ -391,7 +391,10 @@ def get_topic(request: Request, comment_order: CommentTreeSortOption) -> dict: # check for link information (content metadata) to display if topic.is_link_type: content_metadata = topic.content_metadata_fields_for_display.copy() - content_metadata.pop("Domain", None) + + fields_to_hide = ("Domain", "Description") + for field in fields_to_hide: + content_metadata.pop(field, None) else: content_metadata = None