diff --git a/internal/api/likes.go b/internal/api/likes.go index 87ad477a..b36dfcd7 100644 --- a/internal/api/likes.go +++ b/internal/api/likes.go @@ -113,6 +113,7 @@ func (h *handlers) handleLikeAlbum(w http.ResponseWriter, r *http.Request) { return } h.logLikeChange(r, syncpkg.EntityLikeAlbum, user.ID, id, syncpkg.OpUpsert) + h.publishLikeEvent(user.ID, id, "album", true) w.WriteHeader(http.StatusNoContent) } @@ -131,6 +132,7 @@ func (h *handlers) handleUnlikeAlbum(w http.ResponseWriter, r *http.Request) { return } h.logLikeChange(r, syncpkg.EntityLikeAlbum, user.ID, id, syncpkg.OpDelete) + h.publishLikeEvent(user.ID, id, "album", false) w.WriteHeader(http.StatusNoContent) } @@ -159,6 +161,7 @@ func (h *handlers) handleLikeArtist(w http.ResponseWriter, r *http.Request) { return } h.logLikeChange(r, syncpkg.EntityLikeArtist, user.ID, id, syncpkg.OpUpsert) + h.publishLikeEvent(user.ID, id, "artist", true) w.WriteHeader(http.StatusNoContent) } @@ -177,6 +180,7 @@ func (h *handlers) handleUnlikeArtist(w http.ResponseWriter, r *http.Request) { return } h.logLikeChange(r, syncpkg.EntityLikeArtist, user.ID, id, syncpkg.OpDelete) + h.publishLikeEvent(user.ID, id, "artist", false) w.WriteHeader(http.StatusNoContent) }