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
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
c3e9a95ede
commit
19f50e81be
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue