From 7b375634f98d694bbe3c1e16421b11aae7db7b48 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 6 Sep 2013 13:39:26 -0400 Subject: [PATCH] Temporarily disable alert_words markdown processor on staging (imported from commit ab3eed4ce36ebcd3d928d2d92fc34c9ebacc11f9) --- zerver/lib/bugdown/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zerver/lib/bugdown/__init__.py b/zerver/lib/bugdown/__init__.py index 4d9a5d1551..34183b337f 100644 --- a/zerver/lib/bugdown/__init__.py +++ b/zerver/lib/bugdown/__init__.py @@ -612,7 +612,9 @@ class Bugdown(markdown.Extension): 'strong'): del md.inlinePatterns[k] - md.preprocessors.add("custom_text_notifications", AlertWordsNotificationProcessor(md), "_end") + # Temporarily disable alert words on staging to help track down postgres transation quirkiness + if not settings.STAGING_DEPLOYED: + md.preprocessors.add("custom_text_notifications", AlertWordsNotificationProcessor(md), "_end") # Custom bold syntax: **foo** but not __foo__ md.inlinePatterns.add('strong',