From 8cfd16f0a4a64fcac0f5a89dc8590312f757c820 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 24 Mar 2019 03:26:49 -0700 Subject: [PATCH] Remove hardcoded API URL from ExpandThread. --- src/Miscellaneous/ExpandThread.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/ExpandThread.coffee b/src/Miscellaneous/ExpandThread.coffee index e280d4caa..cf525d00e 100644 --- a/src/Miscellaneous/ExpandThread.coffee +++ b/src/Miscellaneous/ExpandThread.coffee @@ -54,7 +54,7 @@ ExpandThread = expand: (thread, a) -> ExpandThread.statuses[thread] = status = {} a.textContent = Build.summaryText '...', a.textContent.match(/\d+/g)... - status.req = $.cache "#{location.protocol}//a.4cdn.org/#{thread.board}/thread/#{thread}.json", -> + status.req = $.cache Site.urls.threadJSON({boardID: thread.board.ID, threadID: thread.ID}), -> return if @ isnt status.req # aborted delete status.req ExpandThread.parse @, thread, a