From 25b41a882445e7e8b89eed22f3764e27f7d5bd3a Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:58:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/ba5dd86441c9e3337dad2f5bb34113462cca2496 --- lib/discourse/plugin_dcreactions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/discourse/plugin_dcreactions.go b/lib/discourse/plugin_dcreactions.go index 978ceb7..85c81fa 100644 --- a/lib/discourse/plugin_dcreactions.go +++ b/lib/discourse/plugin_dcreactions.go @@ -32,6 +32,6 @@ func (c *IdentifiedClient) PluginDCReactionsToggleReaction(ctx context.Context, return nil, merr.New(ctx, ErrEmptyParam, merr.M{"param": "reactionID"}) } - path := fmt.Sprintf("/discourse-reactions/posts/%d/custom-reactions/%s/toggle", postID, url.PathEscape(reactionID)) - return res, c.client.Do(ctx, "GET", path, nil, nil, &res) + path := fmt.Sprintf("/discourse-reactions/posts/%d/custom-reactions/%s/toggle.json", postID, url.PathEscape(reactionID)) + return res, c.client.Do(ctx, "PUT", path, nil, nil, &res) }