summaryrefslogtreecommitdiffstats
path: root/lib/Cron
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-06 11:50:45 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-02-05 15:10:24 -0100
commit3ef7737d14dad684825a040c2e42a1295bb33058 (patch)
tree35d6f12335122bb94967f5176835609d37e6ff61 /lib/Cron
parentc7d1da1f53a4fbde722a28ed0b98acf511409f22 (diff)
fill the server_hashtags with hashtags and trends
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Cron')
-rw-r--r--lib/Cron/Cache.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Cron/Cache.php b/lib/Cron/Cache.php
index ed7d2ee4..9932e3c1 100644
--- a/lib/Cron/Cache.php
+++ b/lib/Cron/Cache.php
@@ -38,6 +38,7 @@ use OCA\Social\Service\AccountService;
use OCA\Social\Service\CacheActorService;
use OCA\Social\Service\ConfigService;
use OCA\Social\Service\DocumentService;
+use OCA\Social\Service\HashtagService;
use OCA\Social\Service\MiscService;
use OCP\AppFramework\QueryException;
@@ -59,6 +60,9 @@ class Cache extends TimedJob {
/** @var DocumentService */
private $documentService;
+ /** @var HashtagService */
+ private $hashtagService;
+
/** @var ConfigService */
private $configService;
@@ -86,6 +90,7 @@ class Cache extends TimedJob {
$this->accountService = $c->query(AccountService::class);
$this->cacheActorService = $c->query(CacheActorService::class);
$this->documentService = $c->query(DocumentService::class);
+ $this->hashtagService = $c->query(HashtagService::class);
$this->configService = $c->query(ConfigService::class);
$this->miscService = $c->query(MiscService::class);
@@ -113,6 +118,11 @@ class Cache extends TimedJob {
$this->documentService->manageCacheDocuments();
} catch (Exception $e) {
}
+
+ try {
+ $this->hashtagService->manageHashtags();
+ } catch (Exception $e) {
+ }
}