mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fixed #74
This commit is contained in:
parent
bb345defac
commit
bfc39bafbe
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue