Merge pull request #881 from pixelfed/frontend-ui-refactor

Update PublicApiController
pull/904/head
daniel 2019-02-24 23:51:15 -07:00 zatwierdzone przez GitHub
commit 458d9de6b9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -252,8 +252,7 @@ class PublicApiController extends Controller
'local',
'created_at',
'updated_at'
)
->whereHas('media')
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->whereLocal(true)
->whereNull('uri')
->where('id', $dir, $id)
@ -280,7 +279,7 @@ class PublicApiController extends Controller
'local',
'created_at',
'updated_at'
)->whereHas('media')
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->whereLocal(true)
->whereNull('uri')
->whereNotIn('profile_id', $filtered)
@ -354,8 +353,7 @@ class PublicApiController extends Controller
'local',
'created_at',
'updated_at'
)
->whereHas('media')
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->whereLocal(true)
->whereNull('uri')
->where('id', $dir, $id)
@ -383,7 +381,7 @@ class PublicApiController extends Controller
'local',
'created_at',
'updated_at'
)->whereHas('media')
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->whereLocal(true)
->whereNull('uri')
->whereIn('profile_id', $following)