Insert missing encodeURIComponent on data-board attribute in Get.threadFromRoot.
This commit is contained in:
parent
19026f0649
commit
6a54b55ede
@ -10,7 +10,8 @@ Get =
|
|||||||
excerpt
|
excerpt
|
||||||
threadFromRoot: (root) ->
|
threadFromRoot: (root) ->
|
||||||
return null unless root?
|
return null unless root?
|
||||||
g.threads["#{root.dataset.board or g.BOARD.ID}.#{root.id.match(/\d*$/)[0]}"]
|
{board} = root.dataset
|
||||||
|
g.threads["#{if board then encodeURIComponent(board) else g.BOARD.ID}.#{root.id.match(/\d*$/)[0]}"]
|
||||||
threadFromNode: (node) ->
|
threadFromNode: (node) ->
|
||||||
Get.threadFromRoot $.x "ancestor-or-self::#{Site.xpath.thread}", node
|
Get.threadFromRoot $.x "ancestor-or-self::#{Site.xpath.thread}", node
|
||||||
postFromRoot: (root) ->
|
postFromRoot: (root) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user