From ee35b0a9fe16b862e6d1080fec45b539e1b41375 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 31 Jan 2010 13:10:34 -0800 Subject: Elide data that isn't useful from the REST array. --- modules/gallery/models/item.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index fd121a5a..083fd06b 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -929,6 +929,11 @@ class Item_Model extends ORM_MPTT { $data["album_cover"] = rest::url("item", $tmp); } unset($data["album_cover_item_id"]); + + // Elide some internal-only data that is going to cause confusion in the client. + foreach (array("relative_path_cache", "relative_url_cache", "left_ptr", "right_ptr") as $key) { + unset($data[$key]); + } return $data; } } -- cgit v1.2.3