diff options
| author | lolcat <will@lolcat.ca> | 2026-04-29 01:16:50 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2026-04-29 01:16:50 -0400 |
| commit | 0dabcea0aaaa2b5a9f383e83308e30e33b9a74f6 (patch) | |
| tree | eb1f2e319e9bec32516910f6e0502b7182aebe73 /scraper/pinterest.php | |
| parent | a8022d22a7de124c8b98847da2b1b7c8b13e19fe (diff) | |
link fix
Diffstat (limited to 'scraper/pinterest.php')
| -rw-r--r-- | scraper/pinterest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scraper/pinterest.php b/scraper/pinterest.php index 4188bce..c6bdf38 100644 --- a/scraper/pinterest.php +++ b/scraper/pinterest.php @@ -297,6 +297,8 @@ class pinterest{ throw new Exception("Failed to decode JSON"); } + print_r($json); + $out = [ "status" => "ok", "npt" => null, @@ -426,7 +428,7 @@ class pinterest{ ] ], "url" => - $item["link"] === null ? + !isset($item["link"]) ? "https://ca.pinterest.com/pin/" . $item["id"] : $item["link"] ]; |
