diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 86ba0ce52..3580fb6ac 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -68,6 +68,17 @@ class ProfileController extends Controller } $is_admin = is_null($user->domain) ? $user->user->is_admin : false; $profile = $user; + $settings = [ + 'crawlable' => $settings->crawlable, + 'following' => [ + 'count' => $settings->show_profile_following_count, + 'list' => $settings->show_profile_following + ], + 'followers' => [ + 'count' => $settings->show_profile_follower_count, + 'list' => $settings->show_profile_followers + ] + ]; return view('profile.show', compact('user', 'profile', 'settings', 'owner', 'is_following', 'is_admin')); } diff --git a/public/js/profile.js b/public/js/profile.js index bd308abd7..0ecbc2b32 100644 Binary files a/public/js/profile.js and b/public/js/profile.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 55f998bb8..ac091f841 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 85b0b47e7..ff0aecdfb 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -38,13 +38,13 @@ Posts -
+
{{profile.followers_count}} Followers
-
+