From 1355f623e1eec66c175521152c94c5709c923fd0 Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 17 Oct 2024 14:44:45 +0200 Subject: [PATCH] Small fix to previous commit --- src/rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcgcdw.py b/src/rcgcdw.py index 6f69758..15d860f 100644 --- a/src/rcgcdw.py +++ b/src/rcgcdw.py @@ -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"):