diff --git a/Iceshrimp.Frontend/Components/FollowButton.razor b/Iceshrimp.Frontend/Components/FollowButton.razor index 3ba6f7be..11035d35 100644 --- a/Iceshrimp.Frontend/Components/FollowButton.razor +++ b/Iceshrimp.Frontend/Components/FollowButton.razor @@ -5,6 +5,8 @@ @using Microsoft.Extensions.Localization @inject IStringLocalizer Loc; @inject ApiService Api; +@if (_buttonType == ButtonType.Self) return; + @switch (_buttonType) { @@ -51,7 +53,8 @@ Unfollow, FollowBack, FollowLocked, - CancelRequest + CancelRequest, + Self } private void Action() @@ -110,5 +113,10 @@ { _buttonType = ButtonType.CancelRequest; } + + if (UserProfile.Relations.HasFlag(Relations.Self)) + { + _buttonType = ButtonType.Self; + } } } \ No newline at end of file