mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Don't run redaction on archives
This commit is contained in:
parent
9196a9cbbe
commit
1247e5f408
|
@ -260,6 +260,7 @@ def rc_processor(change, changed_categories):
|
||||||
delete_messages(dict(logid=logid))
|
delete_messages(dict(logid=logid))
|
||||||
elif identification_string == "delete/revision" and AUTO_SUPPRESSION_ENABLED:
|
elif identification_string == "delete/revision" and AUTO_SUPPRESSION_ENABLED:
|
||||||
logparams = change.get('logparams', {"ids": []})
|
logparams = change.get('logparams', {"ids": []})
|
||||||
|
if logparams.get("type", "") in ("revision", "logging", "oldimage"):
|
||||||
if settings["appearance"]["mode"] == "embed":
|
if settings["appearance"]["mode"] == "embed":
|
||||||
redact_messages(logparams.get("ids", []), 0, logparams.get("new", {}))
|
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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue