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}"
|
excerpt or= "/#{boardID}/ - No.#{threadID}"
|
||||||
|
|
||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
href: "/#{Site.urls.thread({boardID, threadID})}"
|
href: Site.urls.thread({boardID, threadID})
|
||||||
title: excerpt
|
title: excerpt
|
||||||
className: 'watcher-link'
|
className: 'watcher-link'
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,7 @@ SW.tinyboard =
|
|||||||
false
|
false
|
||||||
|
|
||||||
urls:
|
urls:
|
||||||
thread: ({boardID, threadID}) -> "#{boardID}/res/#{threadID}.html"
|
thread: ({boardID, threadID}) -> "#{location.origin}/#{boardID}/res/#{threadID}.html"
|
||||||
|
|
||||||
selectors:
|
selectors:
|
||||||
board: 'form[name="postcontrols"]'
|
board: 'form[name="postcontrols"]'
|
||||||
|
|||||||
@ -2,7 +2,7 @@ SW.yotsuba =
|
|||||||
isOPContainerThread: false
|
isOPContainerThread: false
|
||||||
|
|
||||||
urls:
|
urls:
|
||||||
thread: ({boardID, threadID}) -> "#{boardID}/thread/#{threadID}"
|
thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"
|
||||||
|
|
||||||
selectors:
|
selectors:
|
||||||
board: '.board'
|
board: '.board'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user