Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/services/twitter/status-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class StatusFilter {

// Don't filter any type of tweets posted by the valid users
if (skipValidAccounts && accountIds[data.user.id_str] !== undefined) {
this.logger.trace({ id: data.user.id_str, tweetType, accountIds }, 'keep valid account tweet');
return false;
}

Expand Down Expand Up @@ -84,6 +85,7 @@ class StatusFilter {
return data.id_str;
}

this.logger.trace({ id: data.user.id_str }, 'no filter conditions');
return false;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/services/twitter/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ class Twitter {

this.listen(validAccounts);
} catch (e) {
this.logger.error({ error: e }, 'error on twitter.init');
this.onError(e);
}
}
Expand All @@ -275,6 +276,7 @@ class Twitter {
(map, it) => ({ ...map, [it.account_id]: true }),
{}
);

Object.setPrototypeOf(this.accountIds, null);
}

Expand All @@ -289,6 +291,8 @@ class Twitter {

this.setFollowing(accounts);
this.fillAccountIds(accounts);

this.logger.trace({ accounts, accountIds: this.accountIds }, 'refill listening accounts...');
}

if (!params.follow) {
Expand Down