Use the URI component encoded version of the board name internally.
This commit is contained in:
parent
ef430050c0
commit
aa67e1b58b
@ -1,7 +1,7 @@
|
|||||||
Get =
|
Get =
|
||||||
threadExcerpt: (thread) ->
|
threadExcerpt: (thread) ->
|
||||||
{OP} = thread
|
{OP} = thread
|
||||||
excerpt = ("/#{thread.board}/ - ") + (
|
excerpt = ("/#{decodeURIComponent thread.board.ID}/ - ") + (
|
||||||
OP.info.subject?.trim() or
|
OP.info.subject?.trim() or
|
||||||
OP.commentDisplay().replace(/\n+/g, ' // ') or
|
OP.commentDisplay().replace(/\n+/g, ' // ') or
|
||||||
OP.file?.name or
|
OP.file?.name or
|
||||||
|
|||||||
@ -323,6 +323,7 @@ Main =
|
|||||||
|
|
||||||
for threadRoot in $$(s.thread, board)
|
for threadRoot in $$(s.thread, board)
|
||||||
boardObj = if (boardID = threadRoot.dataset.board)
|
boardObj = if (boardID = threadRoot.dataset.board)
|
||||||
|
boardID = encodeURIComponent boardID
|
||||||
g.boards[boardID] or new Board(boardID)
|
g.boards[boardID] or new Board(boardID)
|
||||||
else
|
else
|
||||||
g.BOARD
|
g.BOARD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user