From f3c44183516741d99b7f0460819afe84e15d9319 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 9 Jun 2016 16:34:49 -0700 Subject: [PATCH] re-enable ragel parser --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 60c6fe315..e9dad64d0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,7 @@ module ApplicationHelper end def format_text(text, options = {}) - if CurrentUser.id == 1 + if !CurrentUser.is_anonymous? && CurrentUser.id < 500 raw(DTextRagel.parse(text)) else DText.parse(text) @@ -58,7 +58,7 @@ module ApplicationHelper end def strip_dtext(text, options = {}) - if CurrentUser.id == 1 + if !CurrentUser.is_anonymous? && CurrentUser.id < 500 raw(DTextRagel.parse_strip(text)) else DText.parse_strip(text)