Make URLs in thread watcher point to appropriate domain. #2143

This commit is contained in:
ccd0 2018-11-24 23:29:15 -08:00
parent efb1a0498a
commit f30ef0e068
3 changed files with 3 additions and 3 deletions

View File

@ -305,7 +305,7 @@ ThreadWatcher =
excerpt or= "/#{boardID}/ - No.#{threadID}"
link = $.el 'a',
href: "/#{Site.urls.thread({boardID, threadID})}"
href: Site.urls.thread({boardID, threadID})
title: excerpt
className: 'watcher-link'

View File

@ -48,7 +48,7 @@ SW.tinyboard =
false
urls:
thread: ({boardID, threadID}) -> "#{boardID}/res/#{threadID}.html"
thread: ({boardID, threadID}) -> "#{location.origin}/#{boardID}/res/#{threadID}.html"
selectors:
board: 'form[name="postcontrols"]'

View File

@ -2,7 +2,7 @@ SW.yotsuba =
isOPContainerThread: false
urls:
thread: ({boardID, threadID}) -> "#{boardID}/thread/#{threadID}"
thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"
selectors:
board: '.board'