You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the message in the response object is an empty string, validateFileUploadResponse treats it as an invalid response.
This is because !response.message is used in the if statement.
Some file storage servers (e.g., https://github.com/quentintaranpino/nostrcheck-server) return an empty message, which results in responses from such file storage servers being considered invalid.
Is this the intended behavior?
When the
message
in the response object is an empty string,validateFileUploadResponse
treats it as an invalid response.This is because
!response.message
is used in the if statement.nostr-tools/nip96.ts
Lines 272 to 274 in bf0c4d4
Some file storage servers (e.g., https://github.com/quentintaranpino/nostrcheck-server) return an empty message, which results in responses from such file storage servers being considered invalid.
Is this the intended behavior?
reproduction
The text was updated successfully, but these errors were encountered: