@fsvreddit/bot-bouncer-evaluation 0.7.48 → 0.7.49

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.
@@ -131,10 +131,13 @@ class EvaluateRedgifs extends UserEvaluatorBase_1.UserEvaluatorBase {
131
131
  if (this.getComments({ since: (0, date_fns_1.subDays)(new Date(), noCommentsBeforeDays) }).length > 0) {
132
132
  return false;
133
133
  }
134
- const recentPosts = this.getPosts({ since: (0, date_fns_1.subDays)(new Date(), lookbackDays) });
134
+ const recentPosts = this.getPosts({ since: (0, date_fns_1.subDays)(new Date(), lookbackDays) }).filter(post => !post.removedByCategory);
135
135
  if (recentPosts.some(post => !this.getRedgifsVideoIdFromUrl(post.url))) {
136
136
  return false;
137
137
  }
138
+ if (recentPosts.some(post => post.crosspostParentId)) {
139
+ return false;
140
+ }
138
141
  if (recentPosts.length < minRedgifsPostsNeeded) {
139
142
  return false;
140
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fsvreddit/bot-bouncer-evaluation",
3
- "version": "0.7.48",
3
+ "version": "0.7.49",
4
4
  "description": "Evaluation code for Bot Bouncer, a Dev Platform app designed to hunt bots on Reddit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {