]> cat aescling's git repositories - mastodon.git/commit
Improve api oembed controller (#3450)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Tue, 30 May 2017 20:30:06 +0000 (16:30 -0400)
committerGitHub <noreply@github.com>
Tue, 30 May 2017 20:30:06 +0000 (16:30 -0400)
commit3576fa0d591db69a1727153a1130ff5bebf37167
tree93fd386972bcf128b91d0296865239631286ef11
parent1dcfb902024a7d4049306d9bc48c499856e2e429
Improve api oembed controller (#3450)

* Add StreamEntryFinder class to parse URLs

* Use StreamEntryFinder and clean up api/oembed controller
app/controllers/api/oembed_controller.rb
app/lib/stream_entry_finder.rb [new file with mode: 0644]
spec/controllers/api/oembed_controller_spec.rb
spec/lib/stream_entry_finder_spec.rb [new file with mode: 0644]