This commit is contained in:
r888888888
2014-02-27 13:41:36 -08:00
parent e53f19d9dd
commit 165e3a4efa
4 changed files with 36 additions and 3 deletions

View File

@@ -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

View File

@@ -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