Feature: Use real-link for referer and origianl image

This commit is contained in:
winkidney
2019-11-30 14:39:55 +08:00
committed by Isaac Bythewood
parent eadeecf78f
commit d7e89050a0
4 changed files with 66 additions and 14 deletions

View File

@@ -79,7 +79,9 @@ function createImageItem(pin) {
image.tags = pin.tags;
image.author = pin.submitter.username;
image.avatar = `//gravatar.com/avatar/${pin.submitter.gravatar}`;
image.original_url = pinHandler.escapeUrl(pin.image.image);
image.large_image_url = pinHandler.escapeUrl(pin.image.image);
image.original_image_url = pin.url;
image.referer = pin.referer;
image.orgianl_width = pin.image.width;
image.style = {
width: `${pin.image.thumbnail.width}px`,