mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-13 02:41:08 +00:00
Fix bug in middleware when domain config is None (#567)
This commit is contained in:
parent
7862795993
commit
dbc25f538d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ from core.models import Config
|
|||
def homepage(request):
|
||||
if request.user.is_authenticated:
|
||||
return Home.as_view()(request)
|
||||
elif request.domain.config_domain.single_user:
|
||||
elif request.domain and request.domain.config_domain.single_user:
|
||||
return redirect(f"/@{request.domain.config_domain.single_user}/")
|
||||
else:
|
||||
return About.as_view()(request)
|
||||
|
|
Loading…
Reference in a new issue