diff options
| author | 2019-10-15 15:13:28 +0100 | |
|---|---|---|
| committer | 2019-10-15 15:13:28 +0100 | |
| commit | f739064d10bc6f682d47683c95a95cc1c13fceb4 (patch) | |
| tree | d74d73814e42ec9125d347bcbf43001f8cc4f1c3 /modules/fediverse/ap_utils.py | |
| parent | remove unused util functions in git_webhooks/gitea.py (diff) | |
show `first` toot if it's a boost, fix Note boost formatting
Diffstat (limited to 'modules/fediverse/ap_utils.py')
| -rw-r--r-- | modules/fediverse/ap_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/fediverse/ap_utils.py b/modules/fediverse/ap_utils.py index 10aa0a67..e8f25bbc 100644 --- a/modules/fediverse/ap_utils.py +++ b/modules/fediverse/ap_utils.py @@ -1,6 +1,7 @@ import urllib.parse import bs4 from src import IRCBot, utils +from . import ap_actor LD_TYPE = ("application/ld+json; " "profile=\"https://www.w3.org/ns/activitystreams\"") @@ -93,7 +94,7 @@ def format_note(actor, note, type="Create"): retooted_user = "@%s@%s" % (original_tooter.username, retoot_instance) retoot_content = _normalise_note(retoot.data["content"]) - return (retoot.data.get("summary", None), "%s (boost %s): %s - %s" % ( + return (retoot.data.get("summary", None), "%s (boost %s): %s" % ( actor.username, retooted_user, retoot_content), retoot_url) elif type == "Create": |
