Skip to content

Commit 45aafd1

Browse files
authored
v1.2.0 (#8)
* Update Devvit and dependencies * Enhance detection functionality and reporting options - Added ability to remove posts with an optional removal message when AI-generated content is detected. - Updated detection methods to return arrays of messages instead of single strings for better handling. - Introduced new settings for auto-check actions and removal message placeholders in the configuration. - Updated README to reflect changes in functionality and versioning.
1 parent dff2759 commit 45aafd1

19 files changed

Lines changed: 729 additions & 996 deletions

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ You can also set the app up to proactively check new posts, or posts approved ou
2828

2929
Consider setting a suitable account age and karma threshold to restrict this feature to accounts who are more likely to break rules. Posts from moderators will never be checked, and by default content from approved users will not be checked (but this can be changed).
3030

31-
If an image is detected as AI, a report like this will be made:
31+
You can configure the app to either report the post (the default option) or remove with an optional removal reason.
32+
33+
By default, a report will be made:
3234

3335
![screenshot](https://github.com/fsvreddit/image-moderator/blob/main/doc_images/screenshot.png?raw=true)
3436

3537
## Change History
3638

39+
### v1.2
40+
41+
* Added ability to remove posts if a match occurs, with an optional removal message
42+
3743
### v1.1.2
3844

3945
* Add additional detection types

eslint.config.mjs

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,3 @@
1-
import eslint from "@eslint/js";
2-
import tseslint from "typescript-eslint";
3-
import stylistic from '@stylistic/eslint-plugin'
4-
import vitest from "@vitest/eslint-plugin"
1+
import fsvconfig from "@fsvreddit/eslint-config";
52

6-
export default tseslint.config(
7-
eslint.configs.recommended,
8-
...tseslint.configs.strictTypeChecked,
9-
...tseslint.configs.stylisticTypeChecked,
10-
stylistic.configs.customize({
11-
indent: 4,
12-
quotes: "double",
13-
semi: true,
14-
quoteProps: "consistent-as-needed",
15-
braceStyle: "1tbs",
16-
}),
17-
{
18-
files: ["**/*.test.ts"],
19-
plugins: {
20-
vitest
21-
},
22-
rules: {
23-
...vitest.configs.recommended.rules,
24-
'vitest/valid-title': 'warn',
25-
'vitest/no-commented-out-tests': 'warn'
26-
}
27-
},
28-
{
29-
files: ["**/*.ts", "**/*.tsx"],
30-
31-
languageOptions: {
32-
parserOptions: {
33-
project: "./tsconfig.json",
34-
tsconfigRootDir: import.meta.dirname,
35-
},
36-
},
37-
38-
rules: {
39-
// Extra rules
40-
"eqeqeq": ["error", "always", {
41-
null: "ignore",
42-
}],
43-
"no-self-compare": "error",
44-
"no-template-curly-in-string": "error",
45-
"no-useless-assignment": "error",
46-
"no-nested-ternary": "error",
47-
"no-return-assign": "error",
48-
"no-sequences": "error",
49-
"no-var": "error",
50-
"arrow-body-style": ["error", "as-needed"],
51-
"func-style": ["error", "declaration", {
52-
allowArrowFunctions: true,
53-
}],
54-
"curly": ["error", "all"],
55-
"object-shorthand": ["error", "always"],
56-
"operator-assignment": ["error", "always"],
57-
"camelcase": ["error", {
58-
properties: "always",
59-
}],
60-
61-
// Rules I don't want
62-
"@typescript-eslint/restrict-template-expressions": "off",
63-
64-
// Extra code styling rules
65-
"@stylistic/array-bracket-newline": ["error", "consistent"],
66-
"@stylistic/array-element-newline": ["error", "consistent"],
67-
"@stylistic/func-call-spacing": ["error", "never"],
68-
"@stylistic/function-paren-newline": ["error", "multiline"],
69-
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
70-
71-
"@stylistic/object-curly-newline": ["error", {
72-
multiline: true,
73-
consistent: true,
74-
}],
75-
76-
"@stylistic/object-property-newline": ["error", {
77-
allowAllPropertiesOnSameLine: true,
78-
}],
79-
80-
"@stylistic/operator-linebreak": ["off"],
81-
"@stylistic/semi-style": ["error", "last"],
82-
"@stylistic/space-before-function-paren": ["error", "always"],
83-
},
84-
},
85-
{
86-
ignores: ["**/node_modules", "**/dist", "eslint.config.mjs", "**/difflib"],
87-
},
88-
);
3+
export default fsvconfig;

0 commit comments

Comments
 (0)