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/service/files.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application/service/files.php') diff --git a/application/service/files.php b/application/service/files.php index 7cef73d97..adc62c7dc 100644 --- a/application/service/files.php +++ b/application/service/files.php @@ -24,6 +24,9 @@ class files { ->where('user', $user) ->get()->result_array(); foreach ($query as $key => $item) { + if (\libraries\Image::type_supported($item["mimetype"])) { + $item['thumbnail'] = site_url("file/thumbnail/".$item['id']); + } $items[$item["id"]] = $item; } -- cgit v1.2.3-24-g4f1b