Socket
Socket
Sign inDemoInstall

tools-for-instagram

Package Overview
Dependencies
461
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.3 to 1.4.4

bots/Message_New_Followers.js

2

package.json
{
"name": "tools-for-instagram",
"version": "1.4.3",
"version": "1.4.4",
"description": "Tools for instagram",

@@ -5,0 +5,0 @@ "main": "src/tools-for-instagram.js",

@@ -20,7 +20,10 @@ //Save the last 10 followers on DB

}
let setAllAsNotNew = false;
accountFollowers.forEach(follower => {
let isNewFollower = false;
let alreadyExists = ig.db.get('lastFollowers').find({pk: follower.pk}).value();
if(alreadyExists != undefined) {
if(alreadyExists != undefined || setAllAsNotNew == true) {
//Important: When an old follower is detected, all the next followers will be set to false
//to avoid set as new followers the end of the list when someone unfollows you
setAllAsNotNew = true;
isNewFollower = false;

@@ -27,0 +30,0 @@ follower.is_new_follower = isNewFollower;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc