From 91d9d44649c7432b4da0a01b8b73aca0c16c1904 Mon Sep 17 00:00:00 2001 From: 7nik Date: Sat, 10 Feb 2024 21:56:26 +0200 Subject: [PATCH] fix: error on post with erotics > 1 --- package.json | 2 +- src/Utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1f76db5..bdd4ab9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ap-vk-poster", - "version": "2.6.4", + "version": "2.6.5", "private": true, "scripts": { "build": "rollup -c --environment PROD", diff --git a/src/Utils.ts b/src/Utils.ts index 1db5020..18125c7 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -53,7 +53,7 @@ async function getPostInfo () { relation: { removetime: string|null }, }>, file_url: string, - } = await fetch(`https://api.anime-pictures.net/api/v3/posts/${postId}`).then((resp) => resp.json()); + } = await fetch(`https://api.anime-pictures.net/api/v3/posts/${postId}`, { credentials: "include" }).then((resp) => resp.json()); post.post.large_preview = post.post.big_preview.replace("_bp.", "_lp."); const artists = Array.from(document.querySelectorAll(".tags li.orange a"))