aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor/profile_follow_button.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/actor/profile_follow_button.php')
-rw-r--r--templates/actor/profile_follow_button.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/actor/profile_follow_button.php b/templates/actor/profile_follow_button.php
index e2b314d..a99656c 100644
--- a/templates/actor/profile_follow_button.php
+++ b/templates/actor/profile_follow_button.php
@@ -10,7 +10,7 @@ $state = match ($relation?->status) {
};
?>
<button class="<?= $state == 'active' ? 'secondary' : 'primary' ?>"
- hx-post="/fragment/actor/<?= $actor->id ?>/followButton" hx-swap="outerHTML" <?= $state == 'pending' ? 'disabled' : '' ?> hx-disabled-elt="this">
+ hx-post="/fragment/actor/<?= $actor->id ?>/followButton" hx-swap="outerHTML" <?= $state == 'pending' ? 'disabled' : '' ?> hx-target="this" hx-disabled-elt="this">
<?= __(match ($state) {
'active' => 'user.profile.unfollow.action',
'pending' => 'user.profile.follow.pending',