Fix notifications, which I broke.

This commit sponsored by Denver Gingerich.  Thank you!
This commit is contained in:
Christopher Allan Webber 2013-08-14 15:57:58 -05:00
parent 7949d88a75
commit 29cd702e47

View File

@ -94,6 +94,8 @@ def get_jinja_env(template_loader, locale):
## but it needs to add stuff to the context. This is THE WRONG WAY TO DO IT
from mediagoblin import notifications
template_env.globals['get_notifications'] = notifications.get_notifications
template_env.globals[
'get_notification_count'] = notifications.get_notification_count
template_env.globals[
'get_comment_subscription'] = notifications.get_comment_subscription