remotes/1693045480750635534/spooky-22
Aevann1 2021-08-15 00:09:10 +02:00
parent 51fa1d60f8
commit bfefc48baf
4 changed files with 0 additions and 10 deletions

View File

@ -25,7 +25,6 @@ services:
- DISCORD_CLIENT_SECRET=vcxvdfgfc6r554etrgd
- DISCORD_BOT_TOKEN=vcxvdfgfc6r554etrgd
- IMGUR_KEY=vcxvdfgfc6r554etrgd
- FACEBOOK_TOKEN=vcxvdfgfc6r554etrgd
#- HCAPTCHA_SITEKEY=vcxvdfgfc6r554etrgd
- HCAPTCHA_SECRET=vcxvdfgfc6r554etrgd
- YOUTUBE_KEY=vcxvdfgfc6r554etrgd

View File

@ -604,11 +604,6 @@ def submit_post(v):
if t: embed = f"https://youtube.com/embed/{yt_id}?start={t}"
else: embed = f"https://youtube.com/embed/{yt_id}"
elif "instagram.com" in domain:
pembed = requests.get("https://graph.facebook.com/v9.0/instagram_oembed", params={"url":url,"access_token":environ.get("FACEBOOK_TOKEN","").strip(),"omitscript":'true'}, headers={"User-Agent": app.config["UserAgent"]}).json()
try: embed = pembed["html"]
except: print(pembed)
elif app.config['SERVER_NAME'] in domain and "/post/" in url:
id = url.split("/post/")[1]
if "/" in id: id = id.split("/")[0]

View File

@ -1,2 +0,0 @@
{{p.embed_url | safe}}
<script async src="//platform.instagram.com/en_US/embeds.js"></script>

View File

@ -273,8 +273,6 @@
{% include "embeds/twitter.html" %}
{% elif "youtu" in p.domain %}
{% include "embeds/youtube.html" %}
{% elif "instagram.com" in p.domain %}
{% include "embeds/instagram.html" %}
{% endif %}
</div>