summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Huynh <jimmy.huynh@etu.unistra.fr>2021-03-14 23:47:31 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-03-17 08:58:42 +0100
commit4e7a1b159a3d238e0407c031268b3edcbcac498d (patch)
tree79804fd234582965be5dcb4d6aa8b8a2ae397cb8
parent3dfbf64a6bf71634226502b292eee2ce03aa0e85 (diff)
✨ Add 'catagories' to jsonSerialize()
Signed-off-by: Jimmy Huynh <jimmy.huynh@etu.unistra.fr>
-rw-r--r--lib/Db/Item.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Db/Item.php b/lib/Db/Item.php
index f72330c2f..33602f356 100644
--- a/lib/Db/Item.php
+++ b/lib/Db/Item.php
@@ -312,6 +312,7 @@ class Item extends Entity implements IAPI, \JsonSerializable
'rtl' => $this->getRtl(),
'intro' => $this->getIntro(),
'fingerprint' => $this->getFingerprint(),
+ 'categories' => $this->getCategories()
];
}