Unfollow via hx-swap=delete

This commit is contained in:
droideparanoico authored and david.alvarez committed 2026-07-15 16:35:05 +02:00
1 parent ffd0f7c53a
commit 7ed0d222a5
2 files changed
+2 -2

No files matched your search

@@ -76,7 +76,7 @@ public class ArtistResource {
@Path("/{mbid}")
public Response unfollow(@PathParam("mbid") String mbid) {
artistService.unfollow(mbid);
return Response.noContent().build();
return Response.ok("").build();
}
@GET
@@ -10,7 +10,7 @@
<button class="btn btn-ghost btn-xs text-error"
hx-delete="/artists/{artist.mbid}"
hx-target="#artist-{artist.mbid}"
hx-swap="outerHTML"
hx-swap="delete"
hx-on::after-request="DiscDrop.refreshFeed()">
Unfollow
</button>