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.
- package/index.js +3 -1
- 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
|
-
|
|
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
|
|