Skip to content

Commit

Permalink
Fix for script
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadenas committed Feb 19, 2024
1 parent 0eb28b7 commit f645486
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/add_name
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f645486

Please sign in to comment.