Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/customercare/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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
Expand Down