- let also process.block() abort when an unwanted block_level is provided
- alias also "reject" to "rejected"
raise ValueError(f"Parameter block_level[]='{type(block_level)}' is not of type 'str'")
elif block_level == "":
raise ValueError("Parameter block_level is empty")
+ elif block_level in ["reject", "suspend", "accept", "silence", "nsfw", "quarantined_instances"]:
+ raise ValueError(f"Parameter block_level='{block_level}' is not supported")
elif blacklist.is_blacklisted(blocker):
raise ValueError(f"blocker='{blocker}' is blacklisted but function was invoked")
elif blacklist.is_blacklisted(blocked):
elif block_level == "suspend":
logger.debug("Block level 'suspend' has been changed to 'suspended'")
block_level = "suspended"
+ elif block_level == "reject":
+ logger.debug("Block level 'reject' has been changed to 'rejected'")
+ block_level = "rejected"
elif block_level == "nsfw":
logger.debug("Block level 'nsfw' has been changed to 'media_nsfw'")
block_level = "media_nsfw"