From f794d3c0a4b8caaac91ed32ddfbfa0f41348749c Mon Sep 17 00:00:00 2001 From: Derf Null Date: Thu, 29 Jun 2023 21:52:18 +0200 Subject: [PATCH] profile: treat self as follower --- lib/Travelynx/Controller/Profile.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm index d77e6f7..c242f58 100755 --- a/lib/Travelynx/Controller/Profile.pm +++ b/lib/Travelynx/Controller/Profile.pm @@ -170,7 +170,10 @@ sub profile { $opt{with_default_visibility} = 0; } - if ($my_user) { + if ($is_self) { + $opt{min_visibility} = 'followers'; + } + elsif ($my_user) { if ( $relation and $relation eq 'follows' ) { $opt{min_visibility} = 'followers'; }