From e0588a6113ff6b3c1000fa6c82629f81fb5e05b5 Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 15 Mar 2025 18:53:29 +0000 Subject: [refactor] move some templates to subdirs --- templates/actor/profile_follow_button.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 templates/actor/profile_follow_button.php (limited to 'templates/actor/profile_follow_button.php') diff --git a/templates/actor/profile_follow_button.php b/templates/actor/profile_follow_button.php new file mode 100644 index 0000000..e2b314d --- /dev/null +++ b/templates/actor/profile_follow_button.php @@ -0,0 +1,20 @@ +actor, $actor); +$state = match ($relation?->status) { + null => $actor->requestToFollow ? 'request' : 'normal', + FollowRelationStatus::PENDING => 'pending', + FollowRelationStatus::ACTIVE => 'active' +}; +?> + \ No newline at end of file -- cgit v1.3