Use the URI component encoded version of the board name internally.

This commit is contained in:
ccd0 2018-12-05 13:14:44 -08:00
parent ef430050c0
commit aa67e1b58b
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Get =
threadExcerpt: (thread) ->
{OP} = thread
excerpt = ("/#{thread.board}/ - ") + (
excerpt = ("/#{decodeURIComponent thread.board.ID}/ - ") + (
OP.info.subject?.trim() or
OP.commentDisplay().replace(/\n+/g, ' // ') or
OP.file?.name or

View File

@ -323,6 +323,7 @@ Main =
for threadRoot in $$(s.thread, board)
boardObj = if (boardID = threadRoot.dataset.board)
boardID = encodeURIComponent boardID
g.boards[boardID] or new Board(boardID)
else
g.BOARD