From d5056349ba64f83d16dbebf3e8564074a1e18122 Mon Sep 17 00:00:00 2001 From: Ricky Rosario Date: Wed, 7 Mar 2012 10:09:17 -0500 Subject: [PATCH] [bug 733753] Add profile_image_url_https to JSON for replies. --- apps/customercare/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/customercare/views.py b/apps/customercare/views.py index 4c6f2414a2f..dd84f92a17e 100644 --- a/apps/customercare/views.py +++ b/apps/customercare/views.py @@ -341,6 +341,8 @@ def twitter_post(request): author = dict(result.author.__dict__) # Raw JSON blob data + # Note: The JSON for the tweet posted is different than what we get from + # the search API. This makes it similar with the fields that we use. raw_tweet_data = { 'id': status['id'], 'text': status['text'], @@ -350,6 +352,7 @@ def twitter_post(request): 'from_user_id': author['id'], 'from_user': author['screen_name'], 'profile_image_url': author['profile_image_url'], + 'profile_image_url_https': author['profile_image_url_https'], } # The tweet with id `reply_to_id` will not be missing from the DB unless