Skip to content

Commit

Permalink
include toot link
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jul 27, 2023
1 parent 1f578ee commit 8f65ef4
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 @@ -128,7 +128,7 @@ def toot2reply(prefix: str, toot: AttribAccessDict, notification: bool = False)
paragraph.replace_with(paragraph.get_text() + "\n\n")
text += soup.get_text()

text += f"\n\n[{v2emoji[toot.visibility]} {toot.created_at.strftime(STRFORMAT)}]\n"
text += f"\n\n[{v2emoji[toot.visibility]} {toot.created_at.strftime(STRFORMAT)}]({toot.url})\n"
if not notification or is_mention:
text += f"↩️ /{prefix}reply_{toot.id}\n"
text += f"⭐ /{prefix}star_{toot.id}\n"
Expand Down

0 comments on commit 8f65ef4

Please sign in to comment.