commit 7305e7c646c048f1fcddb655135d6171559eae3e Author: hiro hiro@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]
tor-commits@lists.torproject.org