mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Strip hash marks from slack channels at send time
This commit is contained in:
@@ -43,6 +43,8 @@ class SlackBackend(TowerBaseEmailBackend):
|
||||
for m in messages:
|
||||
try:
|
||||
for r in m.recipients():
|
||||
if r.startswith('#'):
|
||||
r = r[1:]
|
||||
self.connection.rtm_send_message(r, m.subject)
|
||||
sent_messages += 1
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user