from mediagoblin.decorators import get_user_media_entry, require_active_login
from mediagoblin import messages
-from mediagoblin.notifications import add_comment_subscription, \
- silence_comment_subscription, mark_comment_notification_seen
+from mediagoblin.notifications import (add_comment_subscription,
+ silence_comment_subscription, mark_comment_notification_seen,
+ get_notifications)
@get_user_media_entry
"""
Marks all comment notifications seen.
"""
- for comment in request.notifications.get_notifications(request.user.id):
+ for comment in get_notifications(request.user.id):
mark_comment_notification_seen(comment.subject_id, request.user)
if request.GET.get('next'):