Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Add type "carousel" to MediaToString() function #289

Merged
merged 1 commit into from
Dec 4, 2019

Conversation

maddie
Copy link
Contributor

@maddie maddie commented Dec 4, 2019

Posts with carousel have empty Images and Videos, so we have to extract the images/videos from CarouselMedia, but one cannot determine post type simply by calling MediaToString().

Adding this helps users determining the post type as carousel instead of checking for MediaType (int) for better readability.

@ahmdrz ahmdrz merged commit df999f9 into ahmdrz:master Dec 4, 2019
@ahmdrz
Copy link
Owner

ahmdrz commented Dec 4, 2019

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants