From 4d7f8450d9a842e2f69754ccaa4202710328dcb7 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 14 Jan 2025 20:44:49 +0000 Subject: add (un)follow button to profile also other stuff i forgot what exactly --- 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