From f645486338b00f0e151b829dc24bc7e1d8a16b6f Mon Sep 17 00:00:00 2001 From: Daniel Cadenas Date: Mon, 19 Feb 2024 13:18:10 -0300 Subject: [PATCH] Fix for script --- scripts/add_name | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/add_name b/scripts/add_name index 8009da9..f59f784 100755 --- a/scripts/add_name +++ b/scripts/add_name @@ -25,12 +25,14 @@ NPUB="$2" RELAYS="${@:3}" RELAYS_JSON_ARRAY=$(printf "%s\n" $RELAYS | jq -R . | jq -s .) -BASE64_DELETE_AUTH_EVENT=$(nak event --content='' --kind 27235 -t method='DELETE' -t u="http://nos.social/.well-known/api/names/$NAME" --sec $NIP05_SEC | base64) +BASE64_DELETE_AUTH_EVENT=$(nak event --content='' --kind 27235 -t method='DELETE' -t u="http://nos.social/api/names/$NAME" --sec $NIP05_SEC | base64) -HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X DELETE "http://nos.social/api/names/$NAME" \ +HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X DELETE "https://nos.social/api/names/$NAME" \ -H "Content-Type: application/json" \ -H "Authorization: Nostr $BASE64_DELETE_AUTH_EVENT") +echo "HTTP Status from delete: $HTTP_STATUS" + PUBKEY=$(nostrkeytool --npub2pubkey $NPUB) JSON_PAYLOAD=$(jq -n \