From 412b27b3f3aae74d4e4bd1df67abfe91796effc4 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela Date: Tue, 6 Jul 2021 20:36:37 +0300 Subject: Uses Backend URL In Embed Temporarily switches the URL in discord embeds from the frontend, to the backend, to allow for easier viewing until the frontend is ready. Signed-off-by: Hassan Abouelela --- backend/routes/forms/submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py index 7229ee1..d0ce22c 100644 --- a/backend/routes/forms/submit.py +++ b/backend/routes/forms/submit.py @@ -276,7 +276,7 @@ class SubmitForm(Route): embed = { "title": "New Form Response", "description": f"{mention} submitted a response to `{form.name}`.", - "url": f"{constants.FRONTEND_URL}/form/{form.id}/{response.id}", + "url": f"https://forms-api.pythondiscord.com/forms/{form.id}/responses/{response.id}", "timestamp": response.timestamp, "color": 7506394, } -- cgit v1.2.3