Fix favorite lists not being updated because of nonexisting users (the favorite list does not have one)
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2020-09-06 00:38:46 +02:00
parent c3e9a95ede
commit 19f50e81be
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ func GenerateListIdentifier(l *List, sess *xorm.Engine) (err error) {
func CreateOrUpdateList(list *List) (err error) {
// Check if the namespace exists
if list.NamespaceID != 0 {
if list.NamespaceID != 0 && list.NamespaceID != FavoritesPseudoNamespace.ID {
_, err = GetNamespaceByID(list.NamespaceID)
if err != nil {
return err