Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Mar 19, 2024
1 parent 674ce41 commit 25b41a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/discourse/plugin_dcreactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 25b41a8

Please sign in to comment.