Make URLs in thread watcher point to appropriate domain. #2143
This commit is contained in:
parent
efb1a0498a
commit
f30ef0e068
@ -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'
|
||||
|
||||
|
||||
@ -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"]'
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user