aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/actor/profile_follow_button.php
diff options
context:
space:
mode:
authorwinter2025-03-16 02:04:04 +0000
committerwinter2025-03-16 02:04:04 +0000
commitdd4d47bde45d20954129ba256696bf12c3826cdd (patch)
tree83029bead8fbd1fe7206961b8d0145b1400f6f38 /templates/actor/profile_follow_button.php
parent23ddb01a20788da2c98c4d5bb9bd271ceff532c8 (diff)
fix hx-target everywhere :<
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',