Skip to content

Commit

Permalink
don't include media for all notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Aug 12, 2022
1 parent bb23e0f commit faf49dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplebot_mastodon/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def toot2reply(prefix: str, toot: AttribAccessDict, notification: bool = False)
else:
reply["sender"] = _get_name(toot.account)

if toot.media_attachments:
if toot.media_attachments and (not notification or is_mention):
reply["filename"] = toot.media_attachments.pop(0).url
if toot.media_attachments:
text += "\n".join(media.url for media in toot.media_attachments) + "\n\n"
Expand Down

0 comments on commit faf49dc

Please sign in to comment.