mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
more sync movement
This commit is contained in:
@@ -18,7 +18,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
{
|
||||
return base.IsVisible(user) && GetRecursiveChildren(user, false)
|
||||
.OfType<Playlist>()
|
||||
.Any(i => string.Equals(i.OwnerUserId, user.Id.ToString("N")));
|
||||
.Any(i => i.IsVisible(user));
|
||||
}
|
||||
|
||||
protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
|
||||
|
||||
@@ -115,10 +115,15 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
{
|
||||
Name = name,
|
||||
Parent = parentFolder,
|
||||
Path = path,
|
||||
OwnerUserId = options.UserId
|
||||
Path = path
|
||||
};
|
||||
|
||||
playlist.Shares.Add(new Share
|
||||
{
|
||||
UserId = options.UserId,
|
||||
CanEdit = true
|
||||
});
|
||||
|
||||
playlist.SetMediaType(options.MediaType);
|
||||
|
||||
await parentFolder.AddChild(playlist, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user