summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-20 11:06:44 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-20 11:09:03 +0200
commitf4c47ee5b72f6074827cc86b28d0ab4031be7237 (patch)
tree3ce69531ccc7d9a51bab738089a12adb5634518e /application/controllers
parent1c302ee79174818b996bd4bb4418bbd320e2a1d1 (diff)
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 <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/api/v1/file.php3
1 files changed, 3 insertions, 0 deletions
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;
}