From 1ac83a99d3c7188f74ca4ecdec77a98ec9cef338 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 4 Jul 2016 07:42:05 +0200 Subject: service\files->get_multipaste_history: Add sort order from DB Keep this field private for now. I may be exposed at a later time. The returned values are already normalized so they can be safely exposed. Signed-off-by: Florian Pritz --- application/controllers/api/v1/file.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'application/controllers/api/v1') diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php index dae053db2..784f42555 100644 --- a/application/controllers/api/v1/file.php +++ b/application/controllers/api/v1/file.php @@ -62,6 +62,11 @@ class file extends \controllers\api\api_controller { foreach ($history['items'] as $key => $item) { unset($history['items'][$key]['thumbnail']); } + foreach ($history['multipaste_items'] as $key => $multipaste_item) { + foreach ($multipaste_item['items'] as $inner_key => $item) { + unset($history['multipaste_items'][$key]['items'][$inner_key]['sort_order']); + } + } return $history; } -- cgit v1.2.3-24-g4f1b