|
@@ -14,6 +14,7 @@ use App\Notification;
|
|
use App\Report;
|
|
use App\Report;
|
|
use App\Services\FollowerService;
|
|
use App\Services\FollowerService;
|
|
use App\Services\MediaPathService;
|
|
use App\Services\MediaPathService;
|
|
|
|
+use App\Services\StoryIndexService;
|
|
use App\Services\StoryService;
|
|
use App\Services\StoryService;
|
|
use App\Services\UserRoleService;
|
|
use App\Services\UserRoleService;
|
|
use App\Status;
|
|
use App\Status;
|
|
@@ -222,6 +223,9 @@ class StoryComposeController extends Controller
|
|
$story->can_react = $request->input('can_react');
|
|
$story->can_react = $request->input('can_react');
|
|
$story->save();
|
|
$story->save();
|
|
|
|
|
|
|
|
+ $index = app(StoryIndexService::class);
|
|
|
|
+ $index->indexStory($story);
|
|
|
|
+
|
|
StoryService::delLatest($story->profile_id);
|
|
StoryService::delLatest($story->profile_id);
|
|
StoryFanout::dispatch($story)->onQueue('story');
|
|
StoryFanout::dispatch($story)->onQueue('story');
|
|
StoryService::addRotateQueue($story->id);
|
|
StoryService::addRotateQueue($story->id);
|
|
@@ -243,6 +247,9 @@ class StoryComposeController extends Controller
|
|
$story->active = false;
|
|
$story->active = false;
|
|
$story->save();
|
|
$story->save();
|
|
|
|
|
|
|
|
+ $index = app(StoryIndexService::class);
|
|
|
|
+ $index->removeStory($story->id, $story->profile_id);
|
|
|
|
+
|
|
StoryDelete::dispatch($story)->onQueue('story');
|
|
StoryDelete::dispatch($story)->onQueue('story');
|
|
|
|
|
|
return [
|
|
return [
|