fixes #530
This commit is contained in:
@@ -149,7 +149,7 @@ class ForumPost < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def quoted_response
|
||||
stripped_body = body.gsub(/\[quote\](?:.|\n|\r)+?\[\/quote\][\n\r]*/m, "")
|
||||
stripped_body = DText.strip_blocks(body, "quote")
|
||||
"[quote]\n#{creator_name} said:\n\n#{stripped_body}\n[/quote]\n\n"
|
||||
end
|
||||
|
||||
|
||||
@@ -547,7 +547,7 @@ class Post < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def has_dup_tag?
|
||||
has_tag?("duplicate") ? true : false
|
||||
has_tag?("duplicate")
|
||||
end
|
||||
|
||||
def tag_categories
|
||||
|
||||
Reference in New Issue
Block a user