From fed9aabcb0145f0ab81e26de899a0609018c1cf1 Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 12 Jan 2026 08:52:31 +0000 Subject: [PATCH] Fixing auth type --- send-webmentions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/send-webmentions.sh b/send-webmentions.sh index 7a34f34..df445aa 100755 --- a/send-webmentions.sh +++ b/send-webmentions.sh @@ -65,9 +65,8 @@ jq -c '.[]' "$WEBMENTIONS_FILE" | while read -r mention; do # Send to your API response=$(curl -s -w "\n%{http_code}" -X POST "$API_ENDPOINT" \ - -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ - -d "$mention") + -d "{\"auth\":\"$API_KEY\",\"source\":\"$source\",\"target\":\"$target\"}") http_code=$(echo "$response" | tail -n1)