diff --git a/telematrix/__init__.py b/telematrix/__init__.py index 1a567d7..52b9ea9 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -271,7 +271,7 @@ async def matrix_transaction(request): url_str = await shorten_url(url_str) url_str = ' (' + url_str + ')' - prefix = '<' + displayname + '> ' if displayname != '' + prefix = '' if displayname == '' else '<' + displayname + '> ' caption = '{}{}{}'.format(prefix, content['body'], url_str) response = await group.send_photo(img_file, caption=caption)