diff --git a/files/routes/posts.py b/files/routes/posts.py index 0f3aa3078..fbb8aaa53 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1080,7 +1080,7 @@ def get_post_title(v): if not content_type or "text/html" not in content_type: abort(400) # no you can't just parse html with reeeeeeeegex - match = html_title_regex.match(x.content) + match = html_title_regex.match(x.text) if match and match.lastindex >= 1: title = match.group(1)