Make 'text/plain' the default mime type for comments and make sure the default type is set properly when creating a new comment.
This commit is contained in:
@@ -168,6 +168,10 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
||||
|
||||
# Create comment
|
||||
comment = createObject('plone.Comment')
|
||||
|
||||
# Set comment mime type to current setting in the discussion registry
|
||||
comment.mime_type = settings.text_transform
|
||||
|
||||
# Set comment attributes (including extended comment form attributes)
|
||||
for attribute in self.fields.keys():
|
||||
setattr(comment, attribute, data[attribute])
|
||||
|
||||
Reference in New Issue
Block a user