Don't run redaction on archives

This commit is contained in:
MarkusRost 2022-02-02 08:11:39 +00:00
parent 9196a9cbbe
commit 1247e5f408

View file

@ -260,6 +260,7 @@ def rc_processor(change, changed_categories):
delete_messages(dict(logid=logid))
elif identification_string == "delete/revision" and AUTO_SUPPRESSION_ENABLED:
logparams = change.get('logparams', {"ids": []})
if logparams.get("type", "") in ("revision", "logging", "oldimage"):
if settings["appearance"]["mode"] == "embed":
redact_messages(logparams.get("ids", []), 0, logparams.get("new", {}))
if "content" in logparams.get("new", {}) and settings.get("appearance", {}).get("embed", {}).get("show_edit_changes", False): # Also redact revisions in the middle and next ones in case of content (diffs leak)