fix synapse again

This commit is contained in:
git-bruh 2021-06-05 20:14:44 +05:30
parent 31b7c0dba8
commit 67db7b1be0
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

View file

@ -124,7 +124,7 @@ class MatrixClient(AppService):
message_id = self.discord.send_webhook( message_id = self.discord.send_webhook(
webhook, webhook,
self.mxc_url(author.avatar_url), self.mxc_url(author.avatar_url) if author.avatar_url else None,
message.body, message.body,
author.display_name if author.display_name else message.sender, author.display_name if author.display_name else message.sender,
).id ).id