This commit is contained in:
Frisk 2020-03-21 12:54:48 +01:00
parent b4f63e9e66
commit 55ee290777
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
2 changed files with 5 additions and 3 deletions

View file

@ -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(
wiki=WIKI_SCRIPT_PATH, pageid=change["pageid"], diff=change["revid"], oldrev=change["old_revid"],
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 "",
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 action == "new":
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"]
else:
embed["color"] = math.floor(colornumber)
if settings["appearance"]["embed"]["show_footer"]:
embed["timestamp"] = change["timestamp"]
if "tags" in change and change["tags"]:
tag_displayname = []

View file

@ -57,6 +57,7 @@
"mode": "embed",
"embed": {
"show_edit_changes": false,
"show_footer": true,
"daily_overview": {
"color": 16312092,
"icon":""