forked from rDrama/rDrama
fix
parent
68451513b0
commit
8999a6ea29
|
@ -790,9 +790,6 @@ def submit_post(v, sub=None):
|
||||||
if y.startswith(x.domain):
|
if y.startswith(x.domain):
|
||||||
return error(f'Remove the banned link "{x.domain}" and try again!<br>Reason for link ban: "{x.reason}"')
|
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:
|
if "twitter.com" == domain:
|
||||||
try:
|
try:
|
||||||
embed = requests.get("https://publish.twitter.com/oembed", params={"url":url, "omit_script":"t"}, timeout=5).json()["html"]
|
embed = requests.get("https://publish.twitter.com/oembed", params={"url":url, "omit_script":"t"}, timeout=5).json()["html"]
|
||||||
|
|
Loading…
Reference in New Issue