Browse Source

Update ImportPipeline

Daniel Supernault 6 năm trước cách đây
mục cha
commit
a27418d4ef
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      app/Jobs/ImportPipeline/ImportInstagram.php

+ 4 - 0
app/Jobs/ImportPipeline/ImportInstagram.php

@@ -50,6 +50,10 @@ class ImportInstagram implements ShouldQueue
      */
     public function handle()
     {
+        if(config('pixelfed.import.instagram.enabled') != true) {
+            return;
+        }
+        
         $job = $this->job;
         $profile = $this->job->profile;
         $json = $job->mediaJson();