Skip to content

Commit

Permalink
messages: Hide footlink for links in spoiler blocks.
Browse files Browse the repository at this point in the history
This commit sets show_footlink to False for links in
spoiler blocks.
  • Loading branch information
rsashank committed Jul 12, 2024
1 parent e60debb commit cade61a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zulipterminal/ui_tools/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ def soup2markup(
# Do not show as a footlink as the text is sufficient
# to represent the link.
show_footlink = False
if element.find_parent("div", class_="spoiler-block"):
show_footlink = False

# Detect duplicate links to save screen real estate.
if link not in metadata["message_links"]:
Expand Down

0 comments on commit cade61a

Please sign in to comment.