Update PublicApiController, filter out text replies on home timeline

pull/2861/head
Daniel Supernault 4 years ago
parent 5fb187a062
commit 86219b57fc
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -430,6 +430,7 @@ class PublicApiController extends Controller
->where('id', $dir, $id)
->whereIn('profile_id', $following)
->whereNotIn('profile_id', $filtered)
->whereNull('in_reply_to_id')
->whereIn('visibility',['public', 'unlisted', 'private'])
->orderBy('created_at', 'desc')
->limit($limit)
@ -459,6 +460,7 @@ class PublicApiController extends Controller
->with('profile', 'hashtags', 'mentions')
->whereIn('profile_id', $following)
->whereNotIn('profile_id', $filtered)
->whereNull('in_reply_to_id')
->whereIn('visibility',['public', 'unlisted', 'private'])
->orderBy('created_at', 'desc')
->simplePaginate($limit);

Loading…
Cancel
Save