Skip to content

Commit

Permalink
fix: error on post with erotics > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
7nik committed Feb 10, 2024
1 parent 01d479d commit 91d9d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ap-vk-poster",
"version": "2.6.4",
"version": "2.6.5",
"private": true,
"scripts": {
"build": "rollup -c --environment PROD",
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 91d9d44

Please sign in to comment.