From 59e611286d2ec0cf8f3a0fc75affb6305465477d Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 18 Dec 2025 01:57:21 +0100 Subject: [PATCH] Update social service --- Plugin.php | 2 +- classes/SocialService.php | 2 +- composer.json | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Plugin.php b/Plugin.php index 18ec222..e93cd5a 100644 --- a/Plugin.php +++ b/Plugin.php @@ -131,7 +131,7 @@ class Plugin extends PluginBase } public function registerSchedule($schedule) { - $schedule->command('social:sync')->hourly(); + $schedule->command('social:sync')->everyFiveMinutes(); $schedule->command('social:refresh')->monthly(); } diff --git a/classes/SocialService.php b/classes/SocialService.php index f15e5a8..e046838 100644 --- a/classes/SocialService.php +++ b/classes/SocialService.php @@ -5,7 +5,7 @@ namespace Zoomyboy\Social\Classes; use Event; use Generator; use Illuminate\Support\Collection; -use MediaLibrary; +use System\Classes\MediaLibrary; use Zoomyboy\Social\Exceptions\SocialException; use Zoomyboy\Social\Models\Page; use Zoomyboy\Social\Models\Setting; diff --git a/composer.json b/composer.json index 539793e..127c960 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "zoomyboy/social", "require": { - "guzzlehttp/guzzle": "^7.3" }, "authors": [ { @@ -11,7 +10,7 @@ ], "autoload": { "psr-4": { - "Aweos\\Social\\Exceptions\\": "./exceptions" + "Zoomyboy\\Social\\Exceptions\\": "./exceptions" } } }