taldir

Directory service to resolve wallet mailboxes by messenger addresses
Log | Files | Refs | Submodules | README | LICENSE

commit f7a7b27a5e8b0ef8ce996a80c0fddb7de527abca
parent 202d18e7c649666ec71106a316e9fbbd368df5ee
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Fri,  8 Jul 2022 12:55:29 +0200

minor fix

Diffstat:
Mscripts/taldir-validate-twitter | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/taldir-validate-twitter b/scripts/taldir-validate-twitter @@ -14,6 +14,7 @@ echo "$LINK" | qrencode -o $TMPFILE MESSAGE="Follow this link to complete your Taldir registration: $LINK" echo "$MESSAGE to $TWITTER_ID" UPLOAD_RESP=$(twurl -H upload.twitter.com "/1.1/media/upload.json" -f $TMPFILE -F media -X POST) -MEDIA_ID=$(echo $UPLOAD_RESP | jq -r '.media_id') +MEDIA_ID=$(echo $UPLOAD_RESP | jq -r '.media_id_string') POST_BODY=$(echo '{"event": {"type": "message_create", "message_create": {"target": {"recipient_id":"'$TWITTER_ID'"}, "message_data": {"text":"'$MESSAGE'", "attachment": {"type": "media", "media": {"id":"'$MEDIA_ID'"}}}}}}') twurl -A 'Content-type: application/json' -X POST /1.1/direct_messages/events/new.json -d "$POST_BODY" +rm $TMPFILE