Przeglądaj źródła

Update PublicApiController, remove text only posts

Daniel Supernault 4 lat temu
rodzic
commit
08f492bd3d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/Http/Controllers/PublicApiController.php

+ 2 - 2
app/Http/Controllers/PublicApiController.php

@@ -304,7 +304,7 @@ class PublicApiController extends Controller
                         'local'
                         'local'
                       )
                       )
             		  ->where('id', $dir, $id)
             		  ->where('id', $dir, $id)
-                      ->whereIn('type', ['text', 'photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
+                      ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
                       ->whereNotIn('profile_id', $filtered)
                       ->whereNotIn('profile_id', $filtered)
                       ->whereLocal(true)
                       ->whereLocal(true)
                       ->whereScope('public')
                       ->whereScope('public')
@@ -338,7 +338,7 @@ class PublicApiController extends Controller
                         'reblogs_count',
                         'reblogs_count',
                         'updated_at'
                         'updated_at'
                       )
                       )
-            		  ->whereIn('type', ['text', 'photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
+            		  ->whereIn('type', ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album'])
                       ->whereNotIn('profile_id', $filtered)
                       ->whereNotIn('profile_id', $filtered)
                       ->with('profile', 'hashtags', 'mentions')
                       ->with('profile', 'hashtags', 'mentions')
                       ->whereLocal(true)
                       ->whereLocal(true)