mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
[minor] Truncate comment in Feed to 240 chars
This commit is contained in:
@@ -93,6 +93,10 @@ def update_feed(doc, method=None):
|
|||||||
|
|
||||||
def make_comment_feed(doc, method):
|
def make_comment_feed(doc, method):
|
||||||
"""add comment to feed"""
|
"""add comment to feed"""
|
||||||
make_feed('Comment', doc.comment_doctype, doc.comment_docname, doc.comment_by,
|
comment = doc.comment
|
||||||
'<i>"' + doc.comment + '"</i>', '#6B24B3')
|
if len(comment) > 240:
|
||||||
|
comment = comment[:240] + "..."
|
||||||
|
|
||||||
|
make_feed('Comment', doc.comment_doctype, doc.comment_docname, doc.comment_by,
|
||||||
|
'<i>"' + comment + '"</i>', '#6B24B3')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user