comments: use server-side quote-stripping instead of reimplementing in js.
This commit is contained in:
@@ -249,6 +249,10 @@ class Comment < ActiveRecord::Base
|
||||
def undelete!
|
||||
update({ :is_deleted => false }, :as => CurrentUser.role)
|
||||
end
|
||||
|
||||
def quoted_response
|
||||
DText.quote(body, creator_name)
|
||||
end
|
||||
end
|
||||
|
||||
Comment.connection.extend(PostgresExtensions)
|
||||
|
||||
Reference in New Issue
Block a user