[instagram] Fix for missing edge_media_to_comment' field and add
date' metadata
#250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Probably since last hours/days (at least the CI has not spotted
that problem yet) the
edge_media_to_comment' field is not always present in the sharedData JSON. Sometimes it is present in the response, other times not, also for the same URL. Previously, the
count' field ofedge_media_to_comment' was used to populate
comments' metadata with the number of comments.For completeness a complete test showing such error will be added
at the end of this pull request.
Add
date' metadata using
taken_at_timestamp' field.Here the complete output of the failing tests: