Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
post empty link
Browse files Browse the repository at this point in the history
  • Loading branch information
foxmask committed Oct 16, 2017
1 parent 3cf7594 commit 6d7c84b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions th_slack/my_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def save_data(self, trigger_id, **data):
title_link = ''
if data.get('permalink'):
title_link = ': <' + data.get('permalink') + '|' + title + '>'
else:
title_link = ': <' + data.get('link') + '|' + title + '>'

data = '*' + desc + '*: ' + type_action + title_link

payload = {'username': username,
Expand Down

0 comments on commit 6d7c84b

Please sign in to comment.