Fixes in Comment, if comment by not mentioned, consider owner

This commit is contained in:
Nabin Hait 2014-01-14 15:52:09 +05:30
parent c43d58ac79
commit d23ae108ae

View File

@ -70,6 +70,6 @@ def on_build():
def comment_added(doc):
"""add comment to feed"""
home.make_feed('Comment', doc.comment_doctype, doc.comment_docname, doc.comment_by,
'<i>"' + doc.comment + '"</i>', '#6B24B3')
home.make_feed('Comment', doc.comment_doctype, doc.comment_docname,
doc.comment_by or doc.owner, '<i>"' + doc.comment + '"</i>', '#6B24B3')