From 634c15e4866e4f49ff8e39e69e4230b4c79e5276 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 9 Apr 2023 20:21:40 -0600 Subject: [PATCH 1/2] Update Privacy Settings, add Directory setting --- .../Controllers/Settings/PrivacySettings.php | 4 ++++ resources/views/settings/privacy.blade.php | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/Settings/PrivacySettings.php b/app/Http/Controllers/Settings/PrivacySettings.php index e45536150..3cee63322 100644 --- a/app/Http/Controllers/Settings/PrivacySettings.php +++ b/app/Http/Controllers/Settings/PrivacySettings.php @@ -38,6 +38,10 @@ trait PrivacySettings 'show_profile_follower_count', 'show_profile_following_count', ]; + + $profile->is_suggestable = $request->input('is_suggestable') == 'on'; + $profile->save(); + foreach ($fields as $field) { $form = $request->input($field); if ($field == 'is_private') { diff --git a/resources/views/settings/privacy.blade.php b/resources/views/settings/privacy.blade.php index 681d070c4..8c4142908 100644 --- a/resources/views/settings/privacy.blade.php +++ b/resources/views/settings/privacy.blade.php @@ -24,6 +24,7 @@

When your account is private, only people you approve can see your photos and videos on pixelfed. Your existing followers won't be affected.

+
crawlable ? 'checked=""':''}} {{$settings->is_private ? 'disabled=""':''}}>
- {{--
- is_private ? 'disabled=""':''}} {{$settings->show_discover ? 'checked=""':''}}> -
+
public_dm ? 'checked=""':''}} name="public_dm">