diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 781b066fa..f572c10a3 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -185,7 +185,7 @@ Get = # quotes .replace /((>){2}(>\/[a-z\d]+\/)?\d+)/g, '$1' - threadID = data.thread_num + threadID = +data.thread_num o = # id postID: "#{postID}" diff --git a/src/General/Main.coffee b/src/General/Main.coffee index bd6239ba7..5987b1d08 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -182,7 +182,7 @@ Main = posts = [] for threadRoot in $$ '.board > .thread', board - thread = new Thread threadRoot.id[1..], g.BOARD + thread = new Thread +threadRoot.id[1..], g.BOARD threads.push thread for postRoot in $$ '.thread > .postContainer', threadRoot try diff --git a/src/General/Thread.coffee b/src/General/Thread.coffee index e3e28a1e1..57d82a316 100644 --- a/src/General/Thread.coffee +++ b/src/General/Thread.coffee @@ -2,8 +2,7 @@ class Thread callbacks: [] toString: -> @ID - constructor: (ID, @board) -> - @ID = +ID + constructor: (@ID, @board) -> @fullID = "#{@board}.#{@ID}" @posts = {}