ソースを参照

Merge pull request #884 from pixelfed/frontend-ui-refactor

Frontend ui refactor
daniel 6 年 前
コミット
cbb39ebbb8

+ 2 - 2
app/Http/Controllers/PublicApiController.php

@@ -217,7 +217,7 @@ class PublicApiController extends Controller
         $page = $request->input('page');
         $min = $request->input('min_id');
         $max = $request->input('max_id');
-        $limit = $request->input('limit') ?? 10;
+        $limit = $request->input('limit') ?? 3;
 
         // TODO: Use redis for timelines
         // $timeline = Timeline::build()->local();
@@ -311,7 +311,7 @@ class PublicApiController extends Controller
         $page = $request->input('page');
         $min = $request->input('min_id');
         $max = $request->input('max_id');
-        $limit = $request->input('limit') ?? 10;
+        $limit = $request->input('limit') ?? 3;
 
         // TODO: Use redis for timelines
         // $timeline = Timeline::build()->local();

BIN
public/js/timeline.js


BIN
public/mix-manifest.json


+ 1 - 1
resources/assets/js/components/Timeline.vue

@@ -328,7 +328,7 @@
 					'mod': false,
 					'dark': false,
 					'notify': true,
-					'infinite': false
+					'infinite': true
 				}
 			}
 		},