From cbf57b73f9f2803b6e170b9549d07b1db6a192b1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 24 Feb 2019 23:32:07 -0700 Subject: [PATCH 1/3] Update PublicApiController --- app/Http/Controllers/PublicApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PublicApiController.php b/app/Http/Controllers/PublicApiController.php index 210c32add..f12066cdb 100644 --- a/app/Http/Controllers/PublicApiController.php +++ b/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') ?? 5; + $limit = $request->input('limit') ?? 10; // TODO: Use redis for timelines // $timeline = Timeline::build()->local(); @@ -314,7 +314,7 @@ class PublicApiController extends Controller $page = $request->input('page'); $min = $request->input('min_id'); $max = $request->input('max_id'); - $limit = $request->input('limit') ?? 5; + $limit = $request->input('limit') ?? 10; // TODO: Use redis for timelines // $timeline = Timeline::build()->local(); From d76886e041474669b8f21896affe7b5aa254d9a7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 24 Feb 2019 23:33:12 -0700 Subject: [PATCH 2/3] Update Timeline component, defer notifications until timeline is loaded --- resources/assets/js/components/Timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index a013b56e5..25b73b087 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -341,7 +341,6 @@ mounted() { this.$nextTick(function () { $('[data-toggle="tooltip"]').tooltip() - this.fetchNotifications(); }); }, @@ -379,6 +378,7 @@ } $('.timeline .pagination').removeClass('d-none'); this.loading = false; + this.fetchNotifications(); }).catch(err => { }); }, From 19617f286c791cb4be7bad98350ad6d3f079ed6d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 24 Feb 2019 23:33:34 -0700 Subject: [PATCH 3/3] Update compiled assets --- public/js/timeline.js | Bin 33861 -> 33862 bytes public/mix-manifest.json | Bin 641 -> 641 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/public/js/timeline.js b/public/js/timeline.js index 422b139689b02b1158ce7bc8055955fc9fdc84bc..2eb162f2e4a7ae12dd61d2a4f13b8c9878afd971 100644 GIT binary patch delta 205 zcmX@w!E~&HX~RTjHYJ0S5+kL_i9B*rWr;-!dA7wGO6J8zCQ6#t#d>)fd765OwK|h0 zGHbAaL?<^EiF1IIq*s|#Os;G0+`NPNIQQn6{IbmAIwg8(sU^u7e)%PtX_?81C7Jno z#TuHEFG`ATJ}uNE%>uG%bF^NQ6NgDkVoGwNk;UYv1@SCOiLN1&1385^PcAwszydbd aqc9wyW_e*0g2P$lhTw!3sW8`SS_1$~r9^4~ delta 192 zcmX@s!F05PX~RV3$>*6hHZNg0#x0>!l95@gmzG+RoZ**Wl9`s7oLG{XpI5v&LqMK+ za-*E+=FP%A(kvwrfytYl^_!eHEKMzp6OGJ_CZ8>gXNd}mFr6&W9F7ppZ;nE6E;hR% zIPxtjo3)D`3a}KHc$H1QrzFl^tf2%pK#HXkY{6tZE;*U9#3F?}Tc8w3nUbb;v0k1= Mo~B-6ZLOv?02$;zD*ylh diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 7d0f3266f97d4242b9240e27ab12880db8307f16..6787c764f1e6c488c22528f4a74990cfeb64eeb5 100644 GIT binary patch delta 32 ncmZo