Skip to content

Commit 8713fd7

Browse files
committed
messages: Hide footlink for links in spoiler blocks.
This commit sets show_footlink to False for links in spoiler blocks.
1 parent e60debb commit 8713fd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zulipterminal/ui_tools/messages.py

+2
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,8 @@ def soup2markup(
503503
# Do not show as a footlink as the text is sufficient
504504
# to represent the link.
505505
show_footlink = False
506+
if element.find_parent("div", class_="spoiler-block"):
507+
show_footlink = False
506508

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

0 commit comments

Comments
 (0)