notification: minor fixes
This commit is contained in:
parent
a2dca10e15
commit
5c90a19859
2 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,7 @@ class PortletConfigurator(ViewConfigurator):
|
|||
notif = self.view.globalOptions.organize.showNotifications
|
||||
if not notif:
|
||||
return []
|
||||
if not Notifications(self.person).listTracks(unreadOnly=False):
|
||||
if not list(Notifications(self.person).listTracks(unreadOnly=False)):
|
||||
return []
|
||||
if isinstance(notif, list):
|
||||
notifPage = notif[0]
|
||||
|
|
|
@ -52,6 +52,8 @@ class NotificationsListing(ConceptView):
|
|||
return Notifications(self.person)
|
||||
|
||||
def getNotifications(self, unreadOnly=True):
|
||||
if self.person is None:
|
||||
return []
|
||||
tracks = self.notifications.listTracks(unreadOnly)
|
||||
return tracks
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue