instauto 8.0.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -924,7 +924,8 @@ const Instauto = async (db, browser, options) => {
924
924
 
925
925
  const { users } = JSON.parse(await foundResponse.text());
926
926
  if (users.length < 2) throw new Error('Unable to find user follows list');
927
- return users.some((user) => user.pk === myUserId); // If they follow us, we will show at the top of the list
927
+ // console.log(users, myUserId);
928
+ return users.some((user) => String(user.pk) === String(myUserId) || user.username === myUsername); // If they follow us, we will show at the top of the list
928
929
  } catch (err) {
929
930
  logger.error('Failed to check if user follows us', err);
930
931
  return undefined;
@@ -1019,6 +1020,7 @@ const Instauto = async (db, browser, options) => {
1019
1020
  safelyUnfollowUserList,
1020
1021
  getPage,
1021
1022
  followUsersFollowers,
1023
+ doesUserFollowMe,
1022
1024
  };
1023
1025
  };
1024
1026
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instauto",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "Instagram automation library written in Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {