Unfollow returns 204

This commit is contained in:
2026-07-15 16:30:07 +02:00
parent 9347e97967
commit 58a3fc9290
@@ -17,6 +17,7 @@ import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.core.Response;
import java.util.List;
import java.util.concurrent.CompletableFuture;
@@ -73,9 +74,9 @@ public class ArtistResource {
@DELETE
@Path("/{mbid}")
public TemplateInstance unfollow(@PathParam("mbid") String mbid) {
public Response unfollow(@PathParam("mbid") String mbid) {
artistService.unfollow(mbid);
return feedFragment(0, false, false);
return Response.noContent().build();
}
@GET