From 4e6126405f136745ed3f8d993fbd3c1d4328cec2 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 6 Jun 2019 13:42:22 -0500 Subject: [PATCH] Send links when posting a topic comment --- src/presenters/displayPosts/topic.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/presenters/displayPosts/topic.py b/src/presenters/displayPosts/topic.py index ffd3a3e..851afc5 100644 --- a/src/presenters/displayPosts/topic.py +++ b/src/presenters/displayPosts/topic.py @@ -115,11 +115,6 @@ class displayTopicPresenter(basePost.displayPostPresenter): attachments = "" if hasattr(comment, "attachments"): attachments = self.upload_attachments(comment.attachments) - urls = utils.find_urls_in_text(msg) - if len(urls) != 0: - if len(attachments) == 0: attachments = urls[0] - else: attachments += urls[0] - msg = msg.replace(urls[0], "") if msg != "": kwargs.update(message=msg) if attachments != "":