aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/notifications
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/notifications')
-rw-r--r--mediagoblin/notifications/views.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/mediagoblin/notifications/views.py b/mediagoblin/notifications/views.py
index 7298e964..30ecec77 100644
--- a/mediagoblin/notifications/views.py
+++ b/mediagoblin/notifications/views.py
@@ -30,10 +30,10 @@ def subscribe_comments(request, media):
add_comment_subscription(request.user, media)
- messages.add_message(request,
- messages.SUCCESS,
- _('Subscribed to comments on %s!')
- % media.title)
+ messages.add_message(
+ request,
+ messages.SUCCESS,
+ _('Subscribed to comments on %s!') % media.title)
return redirect(request, location=media.url_for_self(request.urlgen))
@@ -43,10 +43,11 @@ def subscribe_comments(request, media):
def silence_comments(request, media):
silence_comment_subscription(request.user, media)
- messages.add_message(request,
- messages.SUCCESS,
- _('You will not receive notifications for comments on'
- ' %s.') % media.title)
+ messages.add_message(
+ request,
+ messages.SUCCESS,
+ _('You will not receive notifications for comments on %s.') %
+ media.title)
return redirect(request, location=media.url_for_self(request.urlgen))