Merge pull request #1920 from pixelfed/staging

Update StoryController
This commit is contained in:
daniel 2020-01-08 18:05:58 -07:00 committed by GitHub
commit 966cfe8e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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