@fsvreddit/bot-bouncer-evaluation 0.7.40 → 0.7.41
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.
|
@@ -1310,7 +1310,7 @@ class EvaluateBotGroupAdvanced extends UserEvaluatorBase_js_1.UserEvaluatorBase
|
|
|
1310
1310
|
continue;
|
|
1311
1311
|
}
|
|
1312
1312
|
const validSubmitterNames = new Set(Array.isArray(group.submitterName) ? group.submitterName : [group.submitterName]);
|
|
1313
|
-
if (!validSubmitterNames.has(this.submitterName)) {
|
|
1313
|
+
if (!validSubmitterNames.has(this.submitterName) && !validSubmitterNames.has("*")) {
|
|
1314
1314
|
continue;
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
@@ -73,7 +73,7 @@ class EvaluateTextInNsfwImages extends EvaluateBotGroupAdvanced_1.EvaluateBotGro
|
|
|
73
73
|
if (!this.openAiKey) {
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
const resultCacheKey = `imageText:${url}`;
|
|
76
|
+
const resultCacheKey = `bbe:imageText:${url}`;
|
|
77
77
|
const redis = this.context.subredditName === constants_1.MAIN_APP_NAME ? this.context.redis.global : this.context.redis;
|
|
78
78
|
const cachedResult = await redis.get(resultCacheKey);
|
|
79
79
|
if (cachedResult) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fsvreddit/bot-bouncer-evaluation",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.41",
|
|
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": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"zod": "^4.4.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@fsvreddit/eslint-config": "^0.1.
|
|
35
|
+
"@fsvreddit/eslint-config": "^0.1.1",
|
|
36
36
|
"@types/lodash": "^4.17.17",
|
|
37
37
|
"@types/markdown-escape": "^1.1.3",
|
|
38
38
|
"eslint": "^10.0.2",
|