mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2024-12-23 13:49:48 +01:00
Direct people to the about page if not logged in.
This commit is contained in:
parent
097dd694fb
commit
e1c77dd483
@ -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."})
|
||||
|
Loading…
Reference in New Issue
Block a user