From 9f4d62d305806a76528330619aee87fd85c177e0 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Fri, 11 Nov 2022 04:17:59 -0600 Subject: [PATCH] :) --- files/routes/posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 106cd6d3a..0febd9084 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1080,9 +1080,9 @@ 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.text) + match = html_title_regex.search(x.text) if match and match.lastindex >= 1: title = match.group(1) else: abort(400) - return {"url": url, "title": title.string} + return {"url": url, "title": title}