diff MoinMoin/themes/__init__.py @ 2548:07f3ccfdea45

fixes Issue #397: AttributeError after login 'list' object has no attribute 'meta'
author hellboy2k8 <shailrishabh@gmail.com>
date Sun, 09 Feb 2014 23:48:41 +0530
parents b942154b2d74
children ee404f81afe9
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Feb 09 21:57:43 2014 +0530
+++ b/MoinMoin/themes/__init__.py	Sun Feb 09 23:48:41 2014 +0530
@@ -161,7 +161,9 @@
                                     label = _('Add Link')
                                     user_actions.append((endpoint, href, iconcls, label, title, True))
                             elif endpoint == 'frontend.subscribe_item':
-                                if flaskg.user.is_subscribed_to([item_name]):
+                                from MoinMoin.items import Item
+                                item = Item.create(item_name)
+                                if flaskg.user.is_subscribed_to(item):
                                     label = _('Unsubscribe')
                                 else:
                                     label = _('Subscribe')