diff --git a/packages/backend/package.json b/packages/backend/package.json index 7bae44860..8ad3b0e3b 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -87,7 +87,6 @@ "koa-send": "5.0.1", "koa-slow": "2.1.0", "koa-views": "7.0.2", - "langdetect": "0.2.1", "megalodon": "workspace:*", "meilisearch": "0.34.1", "mfm-js": "0.23.3", diff --git a/packages/backend/src/models/repositories/note.ts b/packages/backend/src/models/repositories/note.ts index b553c71c0..082455f42 100644 --- a/packages/backend/src/models/repositories/note.ts +++ b/packages/backend/src/models/repositories/note.ts @@ -28,7 +28,6 @@ import { import { db } from "@/db/postgre.js"; import { IdentifiableError } from "@/misc/identifiable-error.js"; import { detect as detectLanguage_ } from "tinyld"; -import { detect } from "langdetect"; export async function populatePoll(note: Note, meId: User["id"] | null) { const poll = await Polls.findOneByOrFail({ noteId: note.id }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 51ece395e..9f1749dc3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -279,9 +279,6 @@ importers: koa-views: specifier: 7.0.2 version: 7.0.2(@types/koa@2.13.8)(ejs@3.1.9)(pug@3.0.2) - langdetect: - specifier: 0.2.1 - version: 0.2.1 megalodon: specifier: workspace:* version: link:../megalodon @@ -12971,12 +12968,6 @@ packages: engines: {node: '>=14.16'} dev: false - /langdetect@0.2.1: - resolution: {integrity: sha512-vWK2xz8Urp6J0RFwnrR8+d0DQ2yIGjCOqAxBoXNMVFv4ZDmFsbCcNEtwuVnaQ5+ltwZ4Z5rTtuTwHSaEWFdw+A==} - dependencies: - unicode-9.0.0: 0.7.0 - dev: false - /last-run@1.1.1: resolution: {integrity: sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==} engines: {node: '>= 0.10'} @@ -18043,11 +18034,6 @@ packages: busboy: 1.6.0 dev: false - /unicode-9.0.0@0.7.0: - resolution: {integrity: sha512-aqL0GQ3LB2nC3ZEKBZ93hfn7QY80sVGk+OT9Sc6lTxl4wRiwzUBRlAjJB9Fe4+5XydXOV+tb8udp5oRBoED5Tw==} - deprecated: Use @unicode/unicode-9.0.0 instead. - dev: false - /unicode-emoji-json@0.4.0: resolution: {integrity: sha512-lVNOwh2AnmbwqtSrEVjAWKQoVzWgyWmXVqPuPkPfKb0tnA0+uYN/4ILCTdy9IRj/+3drAVhmjwjNJQr2dhCwnA==} dev: true