summaryrefslogtreecommitdiffstats
path: root/lib/Fetcher
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-16 22:03:50 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-03-17 08:58:42 +0100
commit7e0aab358c07a9999b511e0e91e6501dc6b04461 (patch)
treec4f2e6ebe2747c91508eb9a6821e4b88025cada3 /lib/Fetcher
parent29b55ae03031d1a8a48ccd225b31aab8bde3a79b (diff)
🎨 Item: store categories as json & add helper fns
+ added setter/getters that work with arrays to simplify use case Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Fetcher')
-rwxr-xr-xlib/Fetcher/FeedFetcher.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php
index 7840c8cfd..01cb20853 100755
--- a/lib/Fetcher/FeedFetcher.php
+++ b/lib/Fetcher/FeedFetcher.php
@@ -260,9 +260,7 @@ class FeedFetcher implements IFeedFetcher
foreach ($parsedItem->getCategories() as $category) {
$categories[] = $this->decodeTwice($category->getLabel());
}
- if (count($categories) > 0) {
- $item->setCategories(implode(',', $categories));
- }
+ $item->setCategories($categories);
// Use description from feed if body is not provided (by a scraper)
if ($body === null) {