Update timeline logic to sort by date instead of id
This commit is contained in:
parent
7f73b1ae6b
commit
197829224e
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ class SiteController extends Controller
|
|||
->whereNotIn('profile_id', $filtered)
|
||||
->whereHas('media')
|
||||
->whereVisibility('public')
|
||||
->orderBy('id', 'desc')
|
||||
->orderBy('created_at', 'desc')
|
||||
->withCount(['comments', 'likes', 'shares'])
|
||||
->simplePaginate(20);
|
||||
$type = 'personal';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue