Fix all favorite lists showing up in the pseudo namespace

This commit is contained in:
kolaente 2021-07-09 22:59:16 +02:00
parent d06ee82769
commit 09f21ac622
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 5 deletions

View File

@ -547,6 +547,13 @@ func (n *Namespace) ReadAll(s *xorm.Session, a web.Auth, search string, page int
lists = append(lists, savedFiltersNamespace.Lists...)
}
/////////////////
// Add list details (favorite state, among other things
err = addListDetails(s, lists, a)
if err != nil {
return
}
/////////////////
// Favorite lists
@ -562,11 +569,6 @@ func (n *Namespace) ReadAll(s *xorm.Session, a web.Auth, search string, page int
//////////////////////
// Put it all together
err = addListDetails(s, lists, a)
if err != nil {
return
}
for _, list := range lists {
if list.NamespaceID == SharedListsPseudoNamespace.ID || list.NamespaceID == SavedFiltersPseudoNamespace.ID {
// Shared lists and filtered lists are already in the namespace