don't embed comments as posts

master
Aevann1 2022-07-11 13:55:15 +02:00
parent e3ca369392
commit a7c49ca69a
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ def submit_post(v, sub=None):
except: pass
embed += '"></lite-youtube>'
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))