diff --git a/rcgcdw.py b/rcgcdw.py index 8b0fee9..ea3f59d 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -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"):