~tsileo/microblog.pub-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Convert redirect URL to string

João Costa <jdpc557@gmail.com>
Details
Message ID
<20230805162449.111-1-jdpc557@gmail.com>
DKIM signature
missing
Download raw message
Patch: +1 -1
Converts a missing redirect URL to string.
This is required for indieAuth authentication to work on som applications.
---
 app/admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/admin.py b/app/admin.py
index 30b95ea..cf9156c 100644
--- a/app/admin.py
+++ b/app/admin.py
@@ -54,7 +54,7 @@ async def user_session_or_redirect(
        if "redirect_url" in form_data:
            redirect_url = form_data["redirect_url"]
        else:
            redirect_url = request.url_for("admin_stream")
            redirect_url = str(request.url_for("admin_stream"))
    else:
        redirect_url = str(request.url)

--
2.40.0.windows.1
Reply to thread Export thread (mbox)