mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
fixes in blog comments
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
import webnotes
|
|
||||||
|
|
||||||
def execute():
|
|
||||||
webnotes.reload_doc("website", "doctype", "blog_post")
|
|
||||||
from website.utils import clear_cache
|
|
||||||
clear_cache()
|
|
||||||
@@ -83,7 +83,7 @@ def add_comment(args=None):
|
|||||||
|
|
||||||
# notify commentors
|
# notify commentors
|
||||||
commentors = [d[0] for d in webnotes.conn.sql("""select comment_by from tabComment where
|
commentors = [d[0] for d in webnotes.conn.sql("""select comment_by from tabComment where
|
||||||
comment_doctype='Blog' and comment_docname=%s and
|
comment_doctype='Blog Post' and comment_docname=%s and
|
||||||
ifnull(unsubscribed, 0)=0""", args.get('comment_docname'))]
|
ifnull(unsubscribed, 0)=0""", args.get('comment_docname'))]
|
||||||
|
|
||||||
blog = webnotes.conn.sql("""select * from `tabBlog Post` where name=%s""",
|
blog = webnotes.conn.sql("""select * from `tabBlog Post` where name=%s""",
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ $(document).ready(function() {
|
|||||||
comment_by: $("[name='comment_by']").val(),
|
comment_by: $("[name='comment_by']").val(),
|
||||||
comment: $("[name='comment']").val(),
|
comment: $("[name='comment']").val(),
|
||||||
cmd: "website.helpers.blog.add_comment",
|
cmd: "website.helpers.blog.add_comment",
|
||||||
comment_doctype: "Blog",
|
comment_doctype: "Blog Post",
|
||||||
comment_docname: "{{ name }}",
|
comment_docname: "{{ name }}",
|
||||||
page_name: "{{ page_name }}",
|
page_name: "{{ page_name }}",
|
||||||
_type: "POST"
|
_type: "POST"
|
||||||
|
|||||||
Reference in New Issue
Block a user