From e1c77dd483b3bad44d165e08e313e0c89408606e Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Fri, 1 Jun 2018 09:22:17 -0400 Subject: [PATCH] Direct people to the about page if not logged in. --- brutaldon/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index bde8324..eba9c86 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -55,7 +55,7 @@ def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_ try: mastodon = get_mastodon(request) except NotLoggedInException: - return redirect(login) + return redirect(about) data = mastodon.timeline(timeline, limit=100, max_id=max_id, since_id=since_id) form = PostForm(initial={'visibility': request.session['user'].source.privacy}) try: @@ -221,7 +221,7 @@ def old_login(request): @never_cache def logout(request): request.session.flush() - return redirect(home) + return redirect(about) def error(request): return render(request, 'error.html', { 'error': "Not logged in yet."})