Fixed wrong handling of compact block formatter

This commit is contained in:
Frisk 2023-12-30 17:51:57 +01:00
parent d23ba0ca5d
commit 0610a0e030

View file

@ -647,7 +647,6 @@ def compact_block_block(ctx: Context, change: dict):
link = clean_link(ctx.client.create_article_path("Special:Contributions/{user}".format(user=user))) link = clean_link(ctx.client.create_article_path("Special:Contributions/{user}".format(user=user)))
except ValueError: except ValueError:
link = clean_link(ctx.client.create_article_path(sanitize_to_url(change["title"]))) link = clean_link(ctx.client.create_article_path(sanitize_to_url(change["title"])))
else:
if "sitewide" not in change["logparams"]: if "sitewide" not in change["logparams"]:
if "restrictions" in change["logparams"]: if "restrictions" in change["logparams"]:
if "pages" in change["logparams"]["restrictions"] and change["logparams"]["restrictions"]["pages"]: if "pages" in change["logparams"]["restrictions"] and change["logparams"]["restrictions"]["pages"]: