mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
coerce markdown2.UnicodeWithAttrs to unicode in blog comments
This commit is contained in:
@@ -92,7 +92,7 @@ def add_comment(args=None):
|
|||||||
import website.web_cache
|
import website.web_cache
|
||||||
|
|
||||||
if not args: args = webnotes.form_dict
|
if not args: args = webnotes.form_dict
|
||||||
args['comment'] = markdown2.markdown(args.get('comment') or '')
|
args['comment'] = unicode(markdown2.markdown(args.get('comment') or ''))
|
||||||
|
|
||||||
comment = webnotes.widgets.form.comments.add_comment(args)
|
comment = webnotes.widgets.form.comments.add_comment(args)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user