From b2a7486de2ea7f33b70ab88bc304b98e26c548ea Mon Sep 17 00:00:00 2001 From: Bobby Date: Sun, 13 Oct 2024 09:06:13 -0400 Subject: removed discord activity --- authentication/utils.py | 4 ++-- templates/watch/watch.html | 24 ------------------------ 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/authentication/utils.py b/authentication/utils.py index abef14f..3a18541 100644 --- a/authentication/utils.py +++ b/authentication/utils.py @@ -41,7 +41,7 @@ def get_redirect_uri(): # Only Authenticated Users who are in our Discord Server can access the website discord_client_id = os.environ.get("DISCORD_CLIENT_ID") discord_redirect_uri = os.environ.get("DISCORD_REDIRECT_URI") - discord_scope = "identify guilds guilds.members.read rpc" + discord_scope = "identify guilds guilds.members.read" redirect_uri = f"https://discord.com/oauth2/authorize?client_id={discord_client_id}&response_type=code&redirect_uri={discord_redirect_uri}&scope={discord_scope}" return redirect_uri @@ -111,7 +111,7 @@ def exchange_code(code): "grant_type": "authorization_code", "code": code, "redirect_uri": discord_redirect_uri, - "scope": "identify guilds guilds.members.read rpc", + "scope": "identify guilds guilds.members.read", } headers = {"Content-Type": "application/x-www-form-urlencoded"} diff --git a/templates/watch/watch.html b/templates/watch/watch.html index 93f2ff0..58765ae 100644 --- a/templates/watch/watch.html +++ b/templates/watch/watch.html @@ -1465,29 +1465,5 @@ nextEpisodeUrl.searchParams.set('preload', 'true'); fetch(nextEpisodeUrl.href); {% endif %} - - {% endblock scripts %} -- cgit v1.2.3