diff --git a/package.json b/package.json index 8a7d5fbe..5b583493 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,6 @@ "fast-deep-equal": "3.1.3", "hast-util-from-html": "2.0.1", "hast-util-to-html": "9.0.0", - "i18next": "23.7.6", "i18next-resources-to-backend": "1.2.0", "image-size": "^1.0.2", "immer": "10.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d0fb059d..bcd5e432 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -158,9 +158,6 @@ dependencies: hast-util-to-html: specifier: 9.0.0 version: 9.0.0 - i18next: - specifier: 23.7.6 - version: 23.7.6 i18next-resources-to-backend: specifier: 1.2.0 version: 1.2.0 @@ -7535,12 +7532,6 @@ packages: '@babel/runtime': 7.23.2 dev: false - /i18next@23.7.6: - resolution: {integrity: sha512-O66BhXBw0fH4bEJMA0/klQKPEbcwAp5wjXEL803pdAynNbg2f4qhLIYlNHJyE7icrL6XmSZKPYaaXwy11kJ6YQ==} - dependencies: - '@babel/runtime': 7.23.2 - dev: false - /iconv-lite@0.6.2: resolution: {integrity: sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==} engines: {node: '>=0.10.0'} diff --git a/src/lib/expand-unit.ts b/src/lib/expand-unit.ts index 5aff87ff..bee795e6 100644 --- a/src/lib/expand-unit.ts +++ b/src/lib/expand-unit.ts @@ -102,23 +102,6 @@ export const expandCrossbellNote = async ({ ...new Set(expandedNote.metadata.content.images), ] - if (useScore) { - try { - const score = ( - await ( - await fetch( - `${SCORE_API_DOMAIN || SITE_URL}/api/score?cid=${toCid( - expandedNote.metadata?.uri || "", - )}`, - ) - ).json() - ).data - expandedNote.metadata.content.score = score - } catch (e) { - // do nothing - } - } - if (useImageDimensions) { try { const imageDimensions = await (