[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor/master] Fix twitter responder for links
commit 7305e7c646c048f1fcddb655135d6171559eae3e
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date: Tue Oct 15 19:27:52 2019 +0200
Fix twitter responder for links
---
gettor/services/twitter/twitterdm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gettor/services/twitter/twitterdm.py b/gettor/services/twitter/twitterdm.py
index abade53..18af727 100644
--- a/gettor/services/twitter/twitterdm.py
+++ b/gettor/services/twitter/twitterdm.py
@@ -158,7 +158,7 @@ class Twitterdm(object):
log.info("Got new links request.")
for request in link_requests:
- ids = json.load(request[0])
+ ids = json.loads("{}".format(request[0].replace("'", '"')))
message_id = ids['id']
twitter_id = ids['twitter_handle']
date = request[5]
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits