From 12d61820bfcfd52bcc68693393f9fec5092ebe8f Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 25 Apr 2018 22:50:13 -0400 Subject: [PATCH] Add view for notifications. --- brutaldon/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/brutaldon/views.py b/brutaldon/views.py index a0771ab..bd37ad0 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -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):