forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-10-28 19:08:48 +02:00
parent 68451513b0
commit 8999a6ea29
1 changed files with 0 additions and 3 deletions

View File

@ -790,9 +790,6 @@ def submit_post(v, sub=None):
if y.startswith(x.domain):
return error(f'Remove the banned link "{x.domain}" and try again!<br>Reason for link ban: "{x.reason}"')
domain_obj = get_domain(domain)
if not domain_obj: domain_obj = get_domain(domain+parsed_url.path)
if "twitter.com" == domain:
try:
embed = requests.get("https://publish.twitter.com/oembed", params={"url":url, "omit_script":"t"}, timeout=5).json()["html"]