add newusers/reclaim

piotrex43/RcGcDw#240
This commit is contained in:
Markus-Rost 2022-04-11 15:54:31 +02:00
parent aa29d1ca88
commit 639e6da670
2 changed files with 10 additions and 0 deletions

View file

@ -336,6 +336,11 @@
"color": 65280,
"emoji": "🗿"
},
"newusers/reclaim": {
"icon": "",
"color": 65280,
"emoji": "🗿"
},
"managewiki/delete": {
"icon": "",
"color": 8421504,

View file

@ -303,6 +303,8 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c
content = _("Account [{article}]({article_url}) was created by [{author}]({author_url}) and password was sent by email{comment}").format(article=change["title"], article_url=link, author=author, author_url=author_url, comment=parsed_comment)
elif action == "newusers/newusers":
content = _("Account [{author}]({author_url}) was created").format(author=author, author_url=author_url)
elif action == "newusers/reclaim":
content = _("Account [{author}]({author_url}) was reclaimed").format(author=author, author_url=author_url)
elif action == "interwiki/iw_add":
link = link_formatter(create_article_path("Special:Interwiki", WIKI_ARTICLE_PATH))
content = _("[{author}]({author_url}) added an entry to the [interwiki table]({table_url}) pointing to {website} with {prefix} prefix").format(author=author, author_url=author_url, desc=parsed_comment,
@ -928,6 +930,9 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha
elif action == "newusers/newusers":
link = author_url
embed["title"] = _("Created account")
elif action == "newusers/reclaim":
link = author_url
embed["title"] = _("Reclaimed account")
elif action == "interwiki/iw_add":
link = create_article_path("Special:Interwiki", WIKI_ARTICLE_PATH)
embed["title"] = _("Added an entry to the interwiki table")