Skip to content

Commit

Permalink
Revert "test code"
Browse files Browse the repository at this point in the history
This reverts commit 02cad5e3aa7ba1269a22f8a3a37843a512833072.
  • Loading branch information
marcustyphoon committed Aug 18, 2024
1 parent a7514fc commit ff9e3c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/mutual_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ const getIsFollowing = async (blogName, element) => {
await blogData(element),
(await timelineObject(element))?.blog,
(await timelineObject(element))?.authorBlog
].find((data) => console.log('searching', data) || blogName === data?.name);
].find((data) => blogName === data?.name);

following[blogName] = blog
? console.log('FOUND', blogName) || Promise.resolve(blog.followed && !blog.isMember)
: console.log('NOT FOUND', blogName) || apiFetch(`/v2/blog/${blogName}/info`)
? Promise.resolve(blog.followed && !blog.isMember)
: apiFetch(`/v2/blog/${blogName}/info`)
.then(({ response: { blog: { followed } } }) => followed)
.catch(() => Promise.resolve(false));
}
Expand Down

0 comments on commit ff9e3c9

Please sign in to comment.