Merge pull request #1922 from pixelfed/staging

Revert StoryController update
This commit is contained in:
daniel 2020-01-08 20:35:09 -07:00 committed by GitHub
commit 5184c2a6ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()