diff options
Diffstat (limited to 'OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs')
-rw-r--r-- | OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs index 7197049..4da6c3d 100644 --- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs +++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs | |||
@@ -416,7 +416,7 @@ namespace OpenSim.Capabilities.Handlers | |||
416 | 416 | ||
417 | version = containingFolder.Version; | 417 | version = containingFolder.Version; |
418 | 418 | ||
419 | if (fetchItems) | 419 | if (fetchItems && containingFolder.Type != (short)FolderType.Trash) |
420 | { | 420 | { |
421 | List<InventoryItemBase> itemsToReturn = contents.Items; | 421 | List<InventoryItemBase> itemsToReturn = contents.Items; |
422 | List<InventoryItemBase> originalItems = new List<InventoryItemBase>(itemsToReturn); | 422 | List<InventoryItemBase> originalItems = new List<InventoryItemBase>(itemsToReturn); |
@@ -441,6 +441,10 @@ namespace OpenSim.Capabilities.Handlers | |||
441 | } | 441 | } |
442 | 442 | ||
443 | // Now scan for folder links and insert the items they target and those links at the head of the return data | 443 | // Now scan for folder links and insert the items they target and those links at the head of the return data |
444 | |||
445 | /* dont send contents of LinkFolders. | ||
446 | from docs seems this was never a spec | ||
447 | |||
444 | foreach (InventoryItemBase item in originalItems) | 448 | foreach (InventoryItemBase item in originalItems) |
445 | { | 449 | { |
446 | if (item.AssetType == (int)AssetType.LinkFolder) | 450 | if (item.AssetType == (int)AssetType.LinkFolder) |
@@ -471,6 +475,7 @@ namespace OpenSim.Capabilities.Handlers | |||
471 | } | 475 | } |
472 | } | 476 | } |
473 | } | 477 | } |
478 | */ | ||
474 | } | 479 | } |
475 | 480 | ||
476 | // foreach (InventoryItemBase item in contents.Items) | 481 | // foreach (InventoryItemBase item in contents.Items) |
@@ -723,8 +728,8 @@ namespace OpenSim.Capabilities.Handlers | |||
723 | if (item.AssetType == (int)AssetType.Link) | 728 | if (item.AssetType == (int)AssetType.Link) |
724 | itemIDs.Add(item.AssetID); | 729 | itemIDs.Add(item.AssetID); |
725 | 730 | ||
726 | else if (item.AssetType == (int)AssetType.LinkFolder) | 731 | // else if (item.AssetType == (int)AssetType.LinkFolder) |
727 | folderIDs.Add(item.AssetID); | 732 | // folderIDs.Add(item.AssetID); |
728 | } | 733 | } |
729 | 734 | ||
730 | //m_log.DebugFormat("[XXX]: folder {0} has {1} links and {2} linkfolders", contents.FolderID, itemIDs.Count, folderIDs.Count); | 735 | //m_log.DebugFormat("[XXX]: folder {0} has {1} links and {2} linkfolders", contents.FolderID, itemIDs.Count, folderIDs.Count); |