Commits

kumar rishabh committed 07f3ccf

fixes Issue #397: AttributeError after login 'list' object has no attribute 'meta'

  • Participants
  • Parent commits 50e8147

Comments (0)

Files changed (1)

MoinMoin/themes/__init__.py

                                     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')