Remove non-functioning servers,add nostrcheck,NIP96 for all servers

This commit is contained in:
Quentin
2024-08-27 09:41:21 +02:00
parent e8fae19b97
commit eaad552273
2 changed files with 33 additions and 55 deletions

View File

@@ -40,7 +40,7 @@ func create_upload_request(mediaToUpload: MediaUpload, mediaUploader: MediaUploa
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
// If uploading to a media host that support NIP-98 authorization, add the header
if mediaUploader == .nostrBuild,
if mediaUploader == .nostrBuild || mediaUploader == .nostrcheck,
let keypair,
let method = request.httpMethod,
let signature = create_nip98_signature(keypair: keypair, method: method, url: url) {