1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

Fix crash in privacy page

This commit is contained in:
Jason McBrayer 2018-09-07 18:45:36 -04:00
parent 07932b775b
commit b456681de4
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,10 @@
<p>
If you use the normal login form, your email will not be stored, only your instance name and access token.
</p>
<p>
Both methods of login will store your username and instance name. All of your brutaldon settings (theme, timezone, etc) are stored and associated with your username.
</p>
<p>
You can always revoke an access token through the web interface of your instance.
</p>
@ -37,7 +41,6 @@
<ul>
<li> A reference to your information in the database.</li>
<li> All of your <em>public</em> Mastodon profile information. This is needed for some client functionality.</li>
<li> A couple of Mastodon settings: your default post privacy, and whether your media default to sensitive.</li>
</ul>
</section>
{% endblock %}

View File

@ -765,6 +765,10 @@ def about(request):
})
def privacy(request):
account, mastodon = get_usercontext(request)
if account:
preferences = account.preferences
else:
preferences = None
return render(request, 'privacy.html',
{"preferences": preferences,
'own_acct' : request.session.get('user', None)})