Browse Source

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.
merge-requests/85/head
Deimos 5 years ago
parent
commit
cd5e17636b
  1. 5
      tildes/tildes/views/topic.py

5
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

Loading…
Cancel
Save