Construct absolute URLs with the correct protocol and port
This commit is contained in:
parent
3aefbb548e
commit
c42db40a63
14 changed files with 55 additions and 73 deletions
|
@ -9,7 +9,7 @@ from django.utils import timezone
|
|||
from django.views.decorators.http import require_GET
|
||||
|
||||
from bookwyrm import models
|
||||
from bookwyrm.settings import DOMAIN, VERSION, LANGUAGE_CODE
|
||||
from bookwyrm.settings import BASE_URL, DOMAIN, VERSION, LANGUAGE_CODE
|
||||
|
||||
|
||||
@require_GET
|
||||
|
@ -34,7 +34,7 @@ def webfinger(request):
|
|||
},
|
||||
{
|
||||
"rel": "http://ostatus.org/schema/1.0/subscribe",
|
||||
"template": f"https://{DOMAIN}/ostatus_subscribe?acct={{uri}}",
|
||||
"template": f"{BASE_URL}/ostatus_subscribe?acct={{uri}}",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue