From 20d1bc84e3568f74825810edfae14d54e4e3bf85 Mon Sep 17 00:00:00 2001 From: Pablo LION <36828324+PabloLION@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:07:44 +0100 Subject: [PATCH] Update solution.discuss.js Now LeetCode officially moved to a new UI and the path of community solutions has been moved from `https://leetcode.com/problems/trapping-rain-water-ii/discuss/89473/` to `https://leetcode.com/problems/trapping-rain-water-ii/solutions/89473/` This PR reflects the change. --- lib/plugins/solution.discuss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/solution.discuss.js b/lib/plugins/solution.discuss.js index d5f07c1..a4a049b 100644 --- a/lib/plugins/solution.discuss.js +++ b/lib/plugins/solution.discuss.js @@ -14,7 +14,7 @@ var plugin = new Plugin(200, 'solution.discuss', '2019.02.03', 'Plugin to fetch most voted solution in discussions.'); var URL_DISCUSSES = 'https://leetcode.com/graphql'; -var URL_DISCUSS = 'https://leetcode.com/problems/$slug/discuss/$id'; +var URL_DISCUSS = 'https://leetcode.com/problems/$slug/solutions/$id'; function getSolution(problem, lang, cb) { if (!problem) return cb();