Revert bad diff
This commit is contained in:
parent
63cdde3d96
commit
de27c6b4b9
|
@ -49,7 +49,7 @@ module Email
|
||||||
return unless html_override = @opts[:html_override]
|
return unless html_override = @opts[:html_override]
|
||||||
if @opts[:add_unsubscribe_link]
|
if @opts[:add_unsubscribe_link]
|
||||||
|
|
||||||
if response_instructions = @opts[:respond_instructions]
|
if response_instructions = @template_args[:respond_instructions]
|
||||||
respond_instructions = PrettyText.cook(response_instructions).html_safe
|
respond_instructions = PrettyText.cook(response_instructions).html_safe
|
||||||
html_override.gsub!("%{respond_instructions}", respond_instructions)
|
html_override.gsub!("%{respond_instructions}", respond_instructions)
|
||||||
end
|
end
|
||||||
|
|
|
@ -67,19 +67,6 @@ module Email
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_in_email?
|
|
||||||
@allow_strangers = false
|
|
||||||
return false unless SiteSetting.email_in
|
|
||||||
|
|
||||||
category = Category.find_by_email(@message.to.first)
|
|
||||||
return false unless category
|
|
||||||
|
|
||||||
@category_id = category.id
|
|
||||||
@allow_strangers = category.email_in_allow_strangers
|
|
||||||
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def parse_body
|
def parse_body
|
||||||
|
@ -148,6 +135,19 @@ module Email
|
||||||
@body.strip!
|
@body.strip!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def is_in_email?
|
||||||
|
@allow_strangers = false
|
||||||
|
return false unless SiteSetting.email_in
|
||||||
|
|
||||||
|
category = Category.find_by_email(@message.to.first)
|
||||||
|
return false unless category
|
||||||
|
|
||||||
|
@category_id = category.id
|
||||||
|
@allow_strangers = category.email_in_allow_strangers
|
||||||
|
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
def wrap_body_in_quote
|
def wrap_body_in_quote
|
||||||
@body = "[quote=\"#{@message.from.first}\"]
|
@body = "[quote=\"#{@message.from.first}\"]
|
||||||
#{@body}
|
#{@body}
|
||||||
|
|
Loading…
Reference in New Issue