chore: solved comments.
This commit is contained in:
parent
55b758594a
commit
086cf5536a
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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'}
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue