mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 01:33:16 +00:00
Merge pull request #2862 from pixelfed/staging
Update PublicApiController, remove text only posts from Public timeline
This commit is contained in:
commit
d6d6e6dc75
1 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ class PublicApiController extends Controller
|
|||
'local'
|
||||
)
|
||||
->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)
|
||||
->whereLocal(true)
|
||||
->whereScope('public')
|
||||
|
@ -338,7 +338,7 @@ class PublicApiController extends Controller
|
|||
'reblogs_count',
|
||||
'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)
|
||||
->with('profile', 'hashtags', 'mentions')
|
||||
->whereLocal(true)
|
||||
|
|
Loading…
Reference in a new issue