summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v2
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api/v2')
-rw-r--r--application/controllers/api/v2/file.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/controllers/api/v2/file.php b/application/controllers/api/v2/file.php
index ba80ae309..ebe717f73 100644
--- a/application/controllers/api/v2/file.php
+++ b/application/controllers/api/v2/file.php
@@ -59,10 +59,14 @@ class file extends \controllers\api\api_controller {
{
$this->muser->require_access("apikey");
$history = \service\files::history($this->muser->get_userid());
- # APIv1-cleanup: Remove this
foreach ($history['multipaste_items'] as $key => $item) {
+ # APIv1-cleanup: Remove this
unset($history['multipaste_items'][$key]['user_id']);
unset($history['multipaste_items'][$key]['multipaste_id']);
+
+ foreach ($item['items'] as $inner_key => $item) {
+ unset($history['multipaste_items'][$key]['items'][$inner_key]['sort_order']);
+ }
}
return $history;
}