Ensure that the parsed favorites collection is owned by the user
This commit is contained in:
parent
cfec5af207
commit
58610b7cdd
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ class FavoritesService {
|
|||
if (_cachedFavoritesCollectionID == null) {
|
||||
final collections = _collectionsService.getCollections();
|
||||
for (final collection in collections) {
|
||||
if (collection.type == CollectionType.favorites) {
|
||||
if (collection.owner.id == _config.getUserID() &&
|
||||
collection.type == CollectionType.favorites) {
|
||||
_cachedFavoritesCollectionID = collection.id;
|
||||
return collection;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue