From a7c49ca69a0d478013b3319db02eb19cf4e31f2e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 11 Jul 2022 13:55:15 +0200 Subject: [PATCH] don't embed comments as posts --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 25f82e1ba..fa714b9e7 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -800,7 +800,7 @@ def submit_post(v, sub=None): except: pass embed += '">' - elif SITE in domain and "/post/" in url and "context" not in url: + elif SITE in domain and "/post/" in url and "context" not in url and url.count('/') < 6: id = url.split("/post/")[1] if "/" in id: id = id.split("/")[0] embed = str(int(id))