View global as 'anonymous' if not logged in

This commit is contained in:
Socks 2018-03-23 13:17:14 +00:00
parent 45f635fd8b
commit a85b5f408d

View file

@ -112,7 +112,7 @@ def global_timeline():
else: logged_in = accounts.get_display_name(session['username'])
return render_template('global.html',
title="Global Timeline",
logged_in=logged_in,
logged_in=logged_in if logged_in else "anonymous",
posts=timeline.global_timeline(),
theme=accounts.get_theme(logged_in))