misskey/packages/backend/src/models/entities
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
..
abuse-user-report.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
access-token.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
ad.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
announcement-read.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
announcement.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
antenna-note.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
antenna.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
app.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
attestation-challenge.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
auth-session.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
blocking.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
channel-following.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
channel-note-pining.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
channel.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
clip-note.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
clip.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
drive-file.ts feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
drive-folder.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
emoji.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
follow-request.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
following.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
gallery-like.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
gallery-post.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
hashtag.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
instance.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
messaging-message.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
meta.ts feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
moderation-log.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
muted-note.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
muting.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
note-favorite.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
note-reaction.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
note-thread-muting.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
note-unread.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
note-watching.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
note.ts chore: synchronize code and database schema (#8577) 2022-05-05 22:45:22 +09:00
notification.ts feat: アンケート終了通知 2022-03-06 16:06:27 +09:00
page-like.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
page.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
password-reset-request.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
poll-vote.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
poll.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
promo-note.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
promo-read.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
registration-tickets.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
registry-item.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
relay.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
signin.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
sw-subscription.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
used-username.ts refactoring 2021-11-12 02:02:25 +09:00
user-group-invitation.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-group-joining.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-group.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-ip.ts feat: Log user ips (#8872) 2022-07-02 15:12:11 +09:00
user-keypair.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-list-joining.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-list.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-note-pining.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-pending.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-profile.ts feat: auto nsfw detection (#8840) 2022-07-07 21:06:37 +09:00
user-publickey.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user-security-key.ts refactor: Use ESM (#8358) 2022-02-27 11:07:39 +09:00
user.ts Add additional drive capacity change support (#8867) 2022-07-05 00:21:01 +09:00
webhook.ts feat: Webhook (#8457) 2022-04-02 15:28:49 +09:00