This commit is contained in:
Frisk 2019-05-02 18:59:42 +02:00
parent bb345defac
commit bfc39bafbe
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -311,10 +311,10 @@ def compact_formatter(action, change, parsed_comment, categories):
field = _("Discord handle")
else:
field = _("unknown")
content = _("[{author}]({author_url}) edited the {field} on [{target}]({target_url})'s profile. *({desc})*").format(author=author,
target = _("[{target}]({target_url})'s").format(target=change["title"].split(':')[1], target_url=link) if change["title"].split(':')[1] != author else _("[their own]({target_url})").format(target_url=link)
content = _("[{author}]({author_url}) edited the {field} on {target} profile. *({desc})*").format(author=author,
author_url=author_url,
target=change["title"].split(':')[1]+"'s" if change["title"].split(':')[1] != author else _("their own"),
target_url=link,
target=target,
field=field,
desc=BeautifulSoup(change["parsedcomment"], "lxml").get_text())
elif action in ("rights/rights", "rights/autopromote"):