bug fix with format_text
This commit is contained in:
@@ -50,7 +50,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def format_text(text, options = {})
|
def format_text(text, options = {})
|
||||||
if CurrentUser.id < 1_000 && CurrentUser.id >= 1
|
if CurrentUser.id && CurrentUser.id < 1_000
|
||||||
raw(DTextRagel.parse(text))
|
raw(DTextRagel.parse(text))
|
||||||
else
|
else
|
||||||
DText.parse(text)
|
DText.parse(text)
|
||||||
@@ -58,7 +58,7 @@ module ApplicationHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def strip_dtext(text, options = {})
|
def strip_dtext(text, options = {})
|
||||||
if CurrentUser.id < 1_000 && CurrentUser.id >= 1
|
if CurrentUser.id && CurrentUser.id < 1_000
|
||||||
raw(DTextRagel.parse_strip(text))
|
raw(DTextRagel.parse_strip(text))
|
||||||
else
|
else
|
||||||
DText.parse_strip(text)
|
DText.parse_strip(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user