diff --git a/patches/february_2013/p07_clear_web_cache.py b/patches/february_2013/p07_clear_web_cache.py deleted file mode 100644 index 26329249d0..0000000000 --- a/patches/february_2013/p07_clear_web_cache.py +++ /dev/null @@ -1,6 +0,0 @@ -import webnotes - -def execute(): - webnotes.reload_doc("website", "doctype", "blog_post") - from website.utils import clear_cache - clear_cache() diff --git a/website/helpers/blog.py b/website/helpers/blog.py index 5ee3451956..1f25ac0145 100644 --- a/website/helpers/blog.py +++ b/website/helpers/blog.py @@ -83,7 +83,7 @@ def add_comment(args=None): # notify commentors 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'))] blog = webnotes.conn.sql("""select * from `tabBlog Post` where name=%s""", diff --git a/website/templates/js/blog_page.js b/website/templates/js/blog_page.js index d5e99709bc..efdd6bca8a 100644 --- a/website/templates/js/blog_page.js +++ b/website/templates/js/blog_page.js @@ -36,7 +36,7 @@ $(document).ready(function() { comment_by: $("[name='comment_by']").val(), comment: $("[name='comment']").val(), cmd: "website.helpers.blog.add_comment", - comment_doctype: "Blog", + comment_doctype: "Blog Post", comment_docname: "{{ name }}", page_name: "{{ page_name }}", _type: "POST"