misskey/packages/backend/src/misc
syuilo e560601815
feat: auto nsfw detection (#8840)
* feat: auto nsfw detection

* ✌️

* Update ja-JP.yml

* Update ja-JP.yml

* ポルノ判定のしきい値を高めに

* エラーハンドリングちゃんとした

* Update ja-JP.yml

* 感度設定を強化

* refactor

* feat: add video support for auto nsfw detection

* rename: image -> media

* .js

* fix: add missing error handling

* fix: use valid pathname instead of using filename due to invalid usage

* perf(nsfw-detection): decode frames

* disable detection of video for some reasons

* perf(nsfw-detection): streamify detection process for video

* disable disallowUploadWhenPredictedAsPorn option

* fix(nsfw-detection): improve reliability

* fix(nsfw-detection): use Math.ceil instead of Math.round

* perf(nsfw-detection): delete tmp frames after used

* fix(nsfw-detection): FSWatcher does not emit ready event

* perf(nsfw-detection): skip black frames

* refactor: strip exists check

* Update package.json

* めっちゃ変えた

* lint

* Update COPYING

* オプションで動画解析できるように

* Update yarn.lock

* Update CHANGELOG.md

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-07-07 21:06:37 +09:00
..
id refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
acct.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
antenna-cache.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
api-permissions.ts refactoring 2021-11-12 02:02:25 +09:00
app-lock.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
before-shutdown.ts refactor 2022-02-04 11:10:53 +09:00
cache.ts perf: fix caching (#8660) 2022-05-14 13:28:27 +09:00
captcha.ts fix types 2022-04-03 16:30:22 +09:00
check-hit-antenna.ts refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
check-word-mute.ts fix lints 2022-06-24 12:44:22 +02:00
content-disposition.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
convert-host.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
count-same-renotes.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
create-temp.ts fix: tmpdir cleanup removes contained files (#8826) 2022-06-14 23:00:10 +09:00
detect-url-mime.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
download-text-file.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
download-url.ts Fix bug : "IPCIDR is not a constructor" (#8400) 2022-03-12 19:23:57 +09:00
emoji-regex.ts fix 2022-02-27 14:10:31 +09:00
extract-custom-emojis-from-mfm.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
extract-hashtags.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
extract-mentions.ts refactoring 2021-11-12 02:02:25 +09:00
fetch-meta.ts test: e2eテストがCIで失敗していた問題をいくつか修正 (#8642) 2022-05-14 15:16:45 +09:00
fetch-proxy-account.ts refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
fetch.ts refactoe 2022-04-16 17:19:30 +09:00
gen-id.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
gen-identicon.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
gen-key-pair.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
get-file-info.ts feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
get-ip-hash.ts Fix IP address rate limit (#8758) 2022-05-31 17:44:22 +09:00
get-note-summary.ts chore: fix lint 2022-04-03 15:33:22 +09:00
get-reaction-emoji.ts refactoring 2021-11-12 02:02:25 +09:00
hard-limits.ts refactoring 2021-11-12 02:02:25 +09:00
i18n.ts refactoring 2021-11-12 02:02:25 +09:00
identifiable-error.ts refactoring 2021-11-12 02:02:25 +09:00
is-duplicate-key-value-error.ts refactor 2022-02-03 02:41:22 +09:00
is-instance-muted.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
is-mime-image.ts feat: Add Badge Image to Push Notification (#8012) 2022-06-20 00:33:46 +09:00
is-quote.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
is-user-related.ts refactor: remove duplicate code (#8895) 2022-06-27 21:48:10 +09:00
keypair-store.ts refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
langmap.ts fix: better language settings 2022-02-26 15:13:44 +09:00
normalize-for-search.ts refactoring 2021-11-12 02:02:25 +09:00
nyaize.ts refactoring 2021-11-12 02:02:25 +09:00
populate-emojis.ts enhance: ドライブに画像ファイルをアップロードするときオリジナル画像を破棄してwebpublicのみ保持するオプション (#8216) 2022-04-28 11:14:03 +09:00
reaction-lib.ts refactor: migrate to typeorm 3.0 (#8443) 2022-03-26 15:34:00 +09:00
safe-for-sql.ts refactoring 2021-11-12 02:02:25 +09:00
schema.ts Fix #8535 Excessive stack ... 'SchemaTypeDef<?>' (#8547) 2022-04-27 10:49:00 +09:00
secure-rndstr.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
show-machine-info.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
truncate.ts refactoring 2021-11-12 02:02:25 +09:00
webhook-cache.ts feat: Webhook (#8457) 2022-04-02 15:28:49 +09:00