Skip to content

Conversation

@GaryJones
Copy link
Collaborator

Since we can't immediately tell if #file-foo-bar-php meant foo.bar.php or foo-bar.php, we do an API call for the whole Gist which lists all the files. We loop through the files, and take the first one that matches our oembed URL suffix when sanitized.

At the moment, this extra API call is NOT cached at all.

Since we can't immediately tell if #file-foo-bar-php meant foo.bar.php or foo-bar.php, we do an API call for the whole Gist which lists all the files. We loop through the files, and take the first one that matches our oembed URL suffix when sanitized.

At the moment, this extra API call is NOT cached at all.
@ghost ghost assigned GaryJones Nov 1, 2013
@bradyvercher bradyvercher merged commit 6cc9479 into bradyvercher:develop Nov 1, 2013
@GaryJones GaryJones deleted the feature/bookmark-oembed branch November 1, 2013 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants