diff options
-rw-r--r-- | wee_slack.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/wee_slack.py b/wee_slack.py index 6439ba1..d07c853 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2104,15 +2104,6 @@ class SlackMessage(object): if message_json.get('subtype') == 'me_message' and not message_json['text'].startswith(self.sender): message_json['text'] = self.sender + ' ' + self.message_json['text'] - # Replace Slack link with direct link to shared file (required if - # shared by an external user since only the direct link is accessible) - if message_json.get('subtype') == 'file_share': - message_json['text'] = re.sub( - r'<http.+\|', - r'<{}|'.format(message_json['file']['url_private']), - message_json['text'] - ) - def __hash__(self): return hash(self.ts) |