Added forgotten profile handle in compact mode

This commit is contained in:
Frisk 2019-05-22 00:17:18 +02:00
parent 15cd9a2dec
commit a355818753
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -262,6 +262,8 @@ def compact_formatter(action, change, parsed_comment, categories):
field = _("Steam link")
elif change["logparams"]['4:section'] == "profile-link-discord":
field = _("Discord handle")
elif change["logparams"]['4:section'] == "profile-link-battlenet":
field = _("Battle.net handle")
else:
field = _("unknown")
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)