Revert StoryController update

This commit is contained in:
Daniel Supernault 2020-01-08 20:34:49 -07:00
parent 70b98d9ace
commit e30823dbf2
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -106,8 +106,8 @@ class StoryController extends Controller
$stories = Story::with('profile')
->whereIn('profile_id', $following)
->groupBy(['id', 'profile_id'])
->where('expires_at', '>', now())
->groupBy('profile_id')
->orderByDesc('expires_at')
->take(9)
->get()