fix(minor): Extract images from markdown as well

This commit is contained in:
Rushabh Mehta 2025-02-03 17:03:46 +05:30
parent a0b3b93751
commit e3b071dad7

View file

@ -100,6 +100,7 @@ class BlogPost(WebsiteGenerator):
# Extract images first before the standard image extraction to ensure they are public.
extract_images_from_doc(self, "content", is_private=False)
extract_images_from_doc(self, "content_md", is_private=False)
def reset_featured_for_other_blogs(self):
all_posts = frappe.get_all("Blog Post", {"featured": 1})