Skip to content

Commit

Permalink
tweak toots2text()
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jun 12, 2022
1 parent 097c94f commit 29ed47a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simplebot_mastodon/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def toots2text(bot: DeltaBot, toots: list, notifications: bool = False) -> Gener

text += f"\n\n[{v2emoji[t.visibility]} {t.created_at.strftime(STRFORMAT)}]\n"
if not notifications or is_mention:
text += f"↩️ /{prefix}reply_{t.id}\n"
text += f"⭐ /{prefix}star_{t.id}\n"
text += f"↩️ /{prefix}reply_{t.id}\n\n"
text += f"⭐ /{prefix}star_{t.id}\n\n"
if t.visibility in (Visibility.PUBLIC, Visibility.UNLISTED):
text += f"🔁 /{prefix}boost_{t.id}\n"
text += f"⏫ /{prefix}open_{t.id}\n"
text += f"🔁 /{prefix}boost_{t.id}\n\n"
text += f"⏫ /{prefix}open_{t.id}\n\n"

yield text

Expand Down

0 comments on commit 29ed47a

Please sign in to comment.