mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-24 00:34:10 +00:00
Added #76
This commit is contained in:
parent
87a53e3a84
commit
5cbf37490e
|
@ -171,6 +171,8 @@ def compact_formatter(action, change, parsed_comment, categories):
|
||||||
sign = "+"
|
sign = "+"
|
||||||
else:
|
else:
|
||||||
sign = ""
|
sign = ""
|
||||||
|
if change["title"].startswith("MediaWiki:Tag-"): # Refresh tag list when tag display name is edited
|
||||||
|
recent_changes.init_info()
|
||||||
if action == "edit":
|
if action == "edit":
|
||||||
content = _("[{author}]({author_url}) edited [{article}]({edit_link}){comment} ({sign}{edit_size})").format(author=author, author_url=author_url, article=change["title"], edit_link=edit_link, comment=parsed_comment, edit_size=edit_size, sign=sign)
|
content = _("[{author}]({author_url}) edited [{article}]({edit_link}){comment} ({sign}{edit_size})").format(author=author, author_url=author_url, article=change["title"], edit_link=edit_link, comment=parsed_comment, edit_size=edit_size, sign=sign)
|
||||||
else:
|
else:
|
||||||
|
@ -482,6 +484,8 @@ def embed_formatter(action, change, parsed_comment, categories):
|
||||||
colornumber = 9175040 + (math.floor((editsize * -1) / 52)) * 65536
|
colornumber = 9175040 + (math.floor((editsize * -1) / 52)) * 65536
|
||||||
elif editsize == 0:
|
elif editsize == 0:
|
||||||
colornumber = 8750469
|
colornumber = 8750469
|
||||||
|
if change["title"].startswith("MediaWiki:Tag-"): # Refresh tag list when tag display name is edited
|
||||||
|
recent_changes.init_info()
|
||||||
link = "https://{wiki}.gamepedia.com/index.php?title={article}&curid={pageid}&diff={diff}&oldid={oldrev}".format(
|
link = "https://{wiki}.gamepedia.com/index.php?title={article}&curid={pageid}&diff={diff}&oldid={oldrev}".format(
|
||||||
wiki=settings["wiki"], pageid=change["pageid"], diff=change["revid"], oldrev=change["old_revid"],
|
wiki=settings["wiki"], pageid=change["pageid"], diff=change["revid"], oldrev=change["old_revid"],
|
||||||
article=change["title"].replace(" ", "_"))
|
article=change["title"].replace(" ", "_"))
|
||||||
|
|
Loading…
Reference in a new issue