mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 00:55:13 +01:00
tighter control of shortcuts
This commit is contained in:
@@ -413,10 +413,12 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
// Gather child folder and files
|
||||
if (args.IsDirectory)
|
||||
{
|
||||
// When resolving the root, we need it's grandchildren (children of user views)
|
||||
var flattenFolderDepth = args.IsPhysicalRoot ? 2 : 0;
|
||||
var isPhysicalRoot = args.IsPhysicalRoot;
|
||||
|
||||
args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, _logger, flattenFolderDepth: flattenFolderDepth, args: args);
|
||||
// When resolving the root, we need it's grandchildren (children of user views)
|
||||
var flattenFolderDepth = isPhysicalRoot ? 2 : 0;
|
||||
|
||||
args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, _logger, flattenFolderDepth: flattenFolderDepth, args: args, resolveShortcuts: isPhysicalRoot || args.IsVf);
|
||||
}
|
||||
|
||||
// Check to see if we should resolve based on our contents
|
||||
|
||||
Reference in New Issue
Block a user