Skip to content

Conversation

@kakkokari-gtyih
Copy link
Contributor

@kakkokari-gtyih kakkokari-gtyih commented Dec 6, 2025

What

wip

インターフェイスとしては、multipart/form-data で画像 or 動画データを受け取りつつ、判定が完了したらアップロード完了を待たずにレスポンス { sensitive: boolean; porn: boolean; } を返せるようにしてある

Why

Fix #16804

Close #10669

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

❌ Patch coverage is 47.52475% with 53 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.84%. Comparing base (e98252a) to head (cd9652a).
⚠️ Report is 1131 commits behind head on develop.

Files with missing lines Patch % Lines
packages/backend/src/core/AiService.ts 37.66% 48 Missing ⚠️
packages/backend/src/core/FileInfoService.ts 72.72% 3 Missing ⚠️
packages/backend/src/config.ts 87.50% 1 Missing ⚠️
...ges/backend/src/server/api/endpoints/admin/meta.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           develop   #16945       +/-   ##
============================================
+ Coverage    42.56%   62.84%   +20.27%     
============================================
  Files         1685     1151      -534     
  Lines       170650   115246    -55404     
  Branches      4223     7900     +3677     
============================================
- Hits         72643    72427      -216     
+ Misses       97546    40677    -56869     
- Partials       461     2142     +1681     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kakkokari-gtyih
Copy link
Contributor Author

力尽きた

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

このPRによるapi.jsonの差分

差分はこちら
--- base
+++ head
@@ -9765,6 +9765,9 @@
                         "null"
                       ]
                     },
+                    "sensitiveMediaDetectionAvailable": {
+                      "type": "boolean"
+                    },
                     "sensitiveMediaDetection": {
                       "type": "string",
                       "enum": [
@@ -9774,16 +9777,6 @@
                         "remote"
                       ]
                     },
-                    "sensitiveMediaDetectionSensitivity": {
-                      "type": "string",
-                      "enum": [
-                        "medium",
-                        "low",
-                        "high",
-                        "veryLow",
-                        "veryHigh"
-                      ]
-                    },
                     "setSensitiveFlagAutomatically": {
                       "type": "boolean"
                     },
@@ -10221,8 +10214,8 @@
                     "mcaptchaSecretKey",
                     "recaptchaSecretKey",
                     "turnstileSecretKey",
+                    "sensitiveMediaDetectionAvailable",
                     "sensitiveMediaDetection",
-                    "sensitiveMediaDetectionSensitivity",
                     "setSensitiveFlagAutomatically",
                     "enableSensitiveMediaDetectionForVideos",
                     "proxyAccountId",
@@ -19113,16 +19106,6 @@
                       "remote"
                     ]
                   },
-                  "sensitiveMediaDetectionSensitivity": {
-                    "type": "string",
-                    "enum": [
-                      "medium",
-                      "low",
-                      "high",
-                      "veryLow",
-                      "veryHigh"
-                    ]
-                  },
                   "setSensitiveFlagAutomatically": {
                     "type": "boolean"
                   },

Get diff files from Workflow Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/backend Server side specific issue/PR packages/frontend Client side specific issue/PR packages/misskey-js

Projects

Development

Successfully merging this pull request may close these issues.

センシティブ判定を外部サービス扱いにする 機械学習によるNSFW検出を改善する?

1 participant