mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Replaced a string with system
This commit is contained in:
parent
c6ceb0195e
commit
540bd263be
|
@ -861,8 +861,8 @@ def compact_rights_rights(ctx, change):
|
||||||
author=author, author_url=author_url, target=sanitize_to_markdown(change["title"].split(":")[1]), target_url=link,
|
author=author, author_url=author_url, target=sanitize_to_markdown(change["title"].split(":")[1]), target_url=link,
|
||||||
added=added, comma="," if added and removed else "", removed=removed, comment=parsed_comment)
|
added=added, comma="," if added and removed else "", removed=removed, comment=parsed_comment)
|
||||||
else:
|
else:
|
||||||
content = _("{author} autopromoted [{target}]({target_url}) {added}{comma} {removed}{comment}").format(
|
content = _("System autopromoted [{target}]({target_url}) {added}{comma} {removed}{comment}").format(
|
||||||
author=_("System"), author_url=author_url, target=sanitize_to_markdown(change["title"].split(":")[1]), target_url=link,
|
author_url=author_url, target=sanitize_to_markdown(change["title"].split(":")[1]), target_url=link,
|
||||||
added=added, comma=_(",") if added and removed else "",removed=removed, comment=parsed_comment)
|
added=added, comma=_(",") if added and removed else "",removed=removed, comment=parsed_comment)
|
||||||
return DiscordMessage(ctx.message_type, ctx.event, ctx.webhook_url, content=content)
|
return DiscordMessage(ctx.message_type, ctx.event, ctx.webhook_url, content=content)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue