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
|
notif = self.view.globalOptions.organize.showNotifications
|
||||||
if not notif:
|
if not notif:
|
||||||
return []
|
return []
|
||||||
if not Notifications(self.person).listTracks(unreadOnly=False):
|
if not list(Notifications(self.person).listTracks(unreadOnly=False)):
|
||||||
return []
|
return []
|
||||||
if isinstance(notif, list):
|
if isinstance(notif, list):
|
||||||
notifPage = notif[0]
|
notifPage = notif[0]
|
||||||
|
|
|
@ -52,6 +52,8 @@ class NotificationsListing(ConceptView):
|
||||||
return Notifications(self.person)
|
return Notifications(self.person)
|
||||||
|
|
||||||
def getNotifications(self, unreadOnly=True):
|
def getNotifications(self, unreadOnly=True):
|
||||||
|
if self.person is None:
|
||||||
|
return []
|
||||||
tracks = self.notifications.listTracks(unreadOnly)
|
tracks = self.notifications.listTracks(unreadOnly)
|
||||||
return tracks
|
return tracks
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue