Fix getting lists for shared, favorite and saved lists namespace

This commit is contained in:
kolaente 2021-03-18 21:39:38 +01:00
parent fc4eb8ceb9
commit 6fa95e6492
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
3 changed files with 44 additions and 15 deletions

View file

@ -113,6 +113,10 @@ func getNamespaceSimpleByID(s *xorm.Session, id int64) (namespace *Namespace, er
return &FavoritesPseudoNamespace, nil
}
if id == SavedFiltersPseudoNamespace.ID {
return &SavedFiltersPseudoNamespace, nil
}
namespace = &Namespace{}
exists, err := s.Where("id = ?", id).Get(namespace)