From 526f67f84d4ded65dab737f539f666e15f2d7e64 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 20 Aug 2018 21:03:22 -0600 Subject: [PATCH 1/3] Update hashtag infinite scroll --- resources/views/discover/tags/show.blade.php | 39 ++++++++++---------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/resources/views/discover/tags/show.blade.php b/resources/views/discover/tags/show.blade.php index 542f134c..a710ae36 100644 --- a/resources/views/discover/tags/show.blade.php +++ b/resources/views/discover/tags/show.blade.php @@ -21,27 +21,28 @@ - -
- @foreach($posts as $status) -
- -
-
-
{{$posts->links()}} From 08f2a4be9e044d3a5ff118df1f15d7f2592b5d09 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 21 Aug 2018 21:17:22 -0600 Subject: [PATCH 2/3] Add update_settings_table migration to add optional profile following/follower counts --- ...018_08_22_022306_update_settings_table.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2018_08_22_022306_update_settings_table.php diff --git a/database/migrations/2018_08_22_022306_update_settings_table.php b/database/migrations/2018_08_22_022306_update_settings_table.php new file mode 100644 index 00000000..50061290 --- /dev/null +++ b/database/migrations/2018_08_22_022306_update_settings_table.php @@ -0,0 +1,36 @@ +boolean('show_profile_followers')->default(true); + $table->boolean('show_profile_follower_count')->default(true); + $table->boolean('show_profile_following')->default(true); + $table->boolean('show_profile_following_count')->default(true); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + $table->dropColumn('show_profile_followers'); + $table->dropColumn('show_profile_follower_count'); + $table->dropColumn('show_profile_following'); + $table->dropColumn('show_profile_following_count'); + } +} From 3a5ac488c0ba50336a4c5338e0e4930d89712043 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 21 Aug 2018 21:18:14 -0600 Subject: [PATCH 3/3] Update SettingsController --- app/Http/Controllers/SettingsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 0c706184..ab8f35ce 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -171,6 +171,8 @@ class SettingsController extends Controller $fields = [ 'is_private', 'crawlable', + 'show_profile_follower_count', + 'show_profile_following_count' ]; foreach($fields as $field) { $form = $request->input($field);