mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Small fix to previous commit
This commit is contained in:
parent
aaab9ce01d
commit
1355f623e1
|
@ -267,7 +267,7 @@ def rc_processor(change, changed_categories):
|
|||
delete_messages(dict(logid=logid))
|
||||
elif context.event == "delete/revision" and AUTO_SUPPRESSION_ENABLED:
|
||||
logparams = change.get('logparams', {"ids": []})
|
||||
if logparams.get("type", "") == "oldimage":
|
||||
if logparams.get("type", "") == "oldimage" and settings["appearance"]["mode"] == "embed":
|
||||
logger.debug("Revdeleting image code reached")
|
||||
redact_image_files(logparams.get("ids", []), logparams.get("new", {}), change.get("pageid"))
|
||||
elif logparams.get("type", "") in ("revision", "logging"):
|
||||
|
|
Loading…
Reference in a new issue