瀏覽代碼

Update ProfileController

Daniel Supernault 7 年之前
父節點
當前提交
61fb01aaed
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/Http/Controllers/ProfileController.php

+ 1 - 2
app/Http/Controllers/ProfileController.php

@@ -21,7 +21,6 @@ class ProfileController extends Controller
 
 
       $mimes = [
       $mimes = [
         'application/activity+json', 
         'application/activity+json', 
-        'application/ld+json',
         'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
         'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'
       ];
       ];
 
 
@@ -36,7 +35,7 @@ class ProfileController extends Controller
       $timeline = $user->statuses()
       $timeline = $user->statuses()
                   ->whereHas('media')
                   ->whereHas('media')
                   ->whereNull('in_reply_to_id')
                   ->whereNull('in_reply_to_id')
-                  ->orderBy('id','desc')
+                  ->orderBy('created_at','desc')
                   ->withCount(['comments', 'likes'])
                   ->withCount(['comments', 'likes'])
                   ->simplePaginate(21);
                   ->simplePaginate(21);