Don't use raw blog content

merge-requests/30/head
Bob Mottram 2021-05-15 20:45:55 +01:00
parent dbd9acbc9d
commit 7b1a1e8585
1 changed files with 0 additions and 2 deletions

View File

@ -381,8 +381,6 @@ def _getSnippetFromBlogContent(postJsonObject: {}) -> str:
"""Returns a snippet of text from the blog post as a preview
"""
content = postJsonObject['object']['content']
if len(content) < 256:
return removeHtml(content)
if '<p>' in content:
content = content.split('<p>', 1)[1]
if '</p>' in content: