fix sha256 in final event

This commit is contained in:
2025-03-31 22:32:31 +02:00
parent 29e1520487
commit 378fa5b246

View File

@@ -201,6 +201,7 @@ const UploadComponent: React.FC = () => {
const responseText = await res.text()
const responseJson = JSON.parse(responseText)
finalFileUrl = responseJson.url
sha256 = responseJson.sha256
const noteTags = hashtags.map((tag) => ["t", tag])
@@ -226,7 +227,6 @@ const UploadComponent: React.FC = () => {
"url " + finalFileUrl,
"m " + file.type,
"x " + sha256,
"ox " + sha256,
"blurhash " + blurhash,
`dim ${image.width}x${image.height}`,
])