mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-24 00:34:10 +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")
|
field = _("Discord handle")
|
||||||
else:
|
else:
|
||||||
field = _("unknown")
|
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,
|
author_url=author_url,
|
||||||
target=change["title"].split(':')[1]+"'s" if change["title"].split(':')[1] != author else _("their own"),
|
target=target,
|
||||||
target_url=link,
|
|
||||||
field=field,
|
field=field,
|
||||||
desc=BeautifulSoup(change["parsedcomment"], "lxml").get_text())
|
desc=BeautifulSoup(change["parsedcomment"], "lxml").get_text())
|
||||||
elif action in ("rights/rights", "rights/autopromote"):
|
elif action in ("rights/rights", "rights/autopromote"):
|
||||||
|
|
Loading…
Reference in a new issue