mirror of https://gitlab.com/brutaldon/brutaldon
Refactor fullbrutalism_p
This commit is contained in:
parent
f3d3d7005b
commit
81a705cba9
|
@ -64,11 +64,7 @@ def get_mastodon(request):
|
||||||
return mastodon
|
return mastodon
|
||||||
|
|
||||||
def fullbrutalism_p(request):
|
def fullbrutalism_p(request):
|
||||||
if request.session.has_key('fullbrutalism'):
|
return request.session.get('fullbrutalism', False)
|
||||||
fullbrutalism = request.session['fullbrutalism']
|
|
||||||
else:
|
|
||||||
fullbrutalism = False
|
|
||||||
return fullbrutalism
|
|
||||||
|
|
||||||
def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_id=None):
|
def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_id=None):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue