[tor-commits] [gettor/master] Fix twitter responder for links
hiro at torproject.org
hiro at torproject.org
Tue Oct 15 17:27:56 UTC 2019
commit 7305e7c646c048f1fcddb655135d6171559eae3e
Author: hiro <hiro at torproject.org>
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]
More information about the tor-commits
mailing list