1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-06-22 17:45:23 +00:00

Add view for notifications.

This commit is contained in:
Jason McBrayer 2018-04-25 22:50:13 -04:00
parent 51cb1c42fe
commit 12d61820bf

View File

@ -113,7 +113,10 @@ def error(request):
return render(request, 'error.html', { 'error': "Not logged in yet."})
def note(request):
return render(request, 'main/timeline.html', {'timeline': 'Notifications'})
mastodon = get_mastodon(request)
notes = mastodon.notifications()
return render(request, 'main/notifications.html',
{'notes': notes,'timeline': 'Notifications'})
def settings(request):