gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taldir] branch master updated: minor fix


From: gnunet
Subject: [taler-taldir] branch master updated: minor fix
Date: Fri, 08 Jul 2022 12:55:32 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository taldir.

The following commit(s) were added to refs/heads/master by this push:
     new f7a7b27  minor fix
f7a7b27 is described below

commit f7a7b27a5e8b0ef8ce996a80c0fddb7de527abca
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Jul 8 12:55:29 2022 +0200

    minor fix
---
 scripts/taldir-validate-twitter | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/taldir-validate-twitter b/scripts/taldir-validate-twitter
index 99ee33f..707a805 100755
--- 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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]