client/posts: fix absolute url on certain domains
Use the document base href to generate absolute url. Otherwise the image link send to IQDB/google images will be invalid
This commit is contained in:
parent
d3cabc4a36
commit
e6445b431f
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ class Post extends events.EventTarget {
|
|||
_user: response.user,
|
||||
_safety: response.safety,
|
||||
_contentUrl: response.contentUrl,
|
||||
_fullContentUrl: new URL(response.contentUrl, window.location.href).href,
|
||||
_fullContentUrl: new URL(response.contentUrl, document.getElementsByTagName('base')[0].href).href,
|
||||
_thumbnailUrl: response.thumbnailUrl,
|
||||
_canvasWidth: response.canvasWidth,
|
||||
_canvasHeight: response.canvasHeight,
|
||||
|
|
Loading…
Reference in a new issue