From f4c47ee5b72f6074827cc86b28d0ab4031be7237 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 20 Sep 2015 11:06:44 +0200 Subject: API 2.1: Add thumbnail link to history Also adjust test cases to check for the new value. API v1 does not change. Signed-off-by: Florian Pritz --- application/controllers/api/v1/file.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application/controllers/api/v1') diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php index 4ffc8ed48..dae053db2 100644 --- a/application/controllers/api/v1/file.php +++ b/application/controllers/api/v1/file.php @@ -59,6 +59,9 @@ class file extends \controllers\api\api_controller { { $this->muser->require_access("apikey"); $history = \service\files::history($this->muser->get_userid()); + foreach ($history['items'] as $key => $item) { + unset($history['items'][$key]['thumbnail']); + } return $history; } -- cgit v1.2.3-24-g4f1b