mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added #101
This commit is contained in:
parent
b4f63e9e66
commit
55ee290777
|
@ -559,9 +559,9 @@ def embed_formatter(action, change, parsed_comment, categories):
|
||||||
link = "{wiki}index.php?title={article}&curid={pageid}&diff={diff}&oldid={oldrev}".format(
|
link = "{wiki}index.php?title={article}&curid={pageid}&diff={diff}&oldid={oldrev}".format(
|
||||||
wiki=WIKI_SCRIPT_PATH, pageid=change["pageid"], diff=change["revid"], oldrev=change["old_revid"],
|
wiki=WIKI_SCRIPT_PATH, pageid=change["pageid"], diff=change["revid"], oldrev=change["old_revid"],
|
||||||
article=change["title"].replace(" ", "_"))
|
article=change["title"].replace(" ", "_"))
|
||||||
embed["title"] = "{redirect}{article} ({new}{minor}{bot} {editsize})".format(redirect="⤷ " if "redirect" in change else "", article=change["title"], editsize="+" + str(
|
embed["title"] = "{redirect}{article} ({new}{minor}{bot}{space}{editsize})".format(redirect="⤷ " if "redirect" in change else "", article=change["title"], editsize="+" + str(
|
||||||
editsize) if editsize > 0 else editsize, new=_("(N!) ") if action == "new" else "",
|
editsize) if editsize > 0 else editsize, new=_("(N!) ") if action == "new" else "",
|
||||||
minor=_("m") if action == "edit" and "minor" in change else "", bot=_('b') if "bot" in change else "")
|
minor=_("m") if action == "edit" and "minor" in change else "", bot=_('b') if "bot" in change else "", space=" " if "bot" in change or (action == "edit" and "minor" in change) or action == "new" else "")
|
||||||
if settings["appearance"]["embed"]["show_edit_changes"]:
|
if settings["appearance"]["embed"]["show_edit_changes"]:
|
||||||
if action == "new":
|
if action == "new":
|
||||||
changed_content = safe_read(recent_changes.safe_request(
|
changed_content = safe_read(recent_changes.safe_request(
|
||||||
|
@ -935,6 +935,7 @@ def embed_formatter(action, change, parsed_comment, categories):
|
||||||
embed["color"] = settings["appearance"]["embed"][action]["color"]
|
embed["color"] = settings["appearance"]["embed"][action]["color"]
|
||||||
else:
|
else:
|
||||||
embed["color"] = math.floor(colornumber)
|
embed["color"] = math.floor(colornumber)
|
||||||
|
if settings["appearance"]["embed"]["show_footer"]:
|
||||||
embed["timestamp"] = change["timestamp"]
|
embed["timestamp"] = change["timestamp"]
|
||||||
if "tags" in change and change["tags"]:
|
if "tags" in change and change["tags"]:
|
||||||
tag_displayname = []
|
tag_displayname = []
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
"mode": "embed",
|
"mode": "embed",
|
||||||
"embed": {
|
"embed": {
|
||||||
"show_edit_changes": false,
|
"show_edit_changes": false,
|
||||||
|
"show_footer": true,
|
||||||
"daily_overview": {
|
"daily_overview": {
|
||||||
"color": 16312092,
|
"color": 16312092,
|
||||||
"icon":""
|
"icon":""
|
||||||
|
|
Loading…
Reference in a new issue