retooted account should use username, not display name

This commit is contained in:
jesopo 2019-12-12 05:35:45 +00:00
parent a5554663b4
commit 89e9122128

View file

@ -132,8 +132,7 @@ def parse_note(actor, note, type="Create"):
original_tooter = ap_actor.Actor(retoot["attributedTo"])
original_tooter.load()
retooted_user = "@%s@%s" % (original_tooter.display_name,
retoot_instance)
retooted_user = "@%s@%s" % (original_tooter.username, retoot_instance)
retoot_content = _content(retoot)
author = "%s (boost %s)" % (actor.display_name, retooted_user)