]> cat aescling's git repositories - mastodon.git/commit
Raise an error for remote url in StatusFinder (#4776)
authorunarist <m.unarist@gmail.com>
Sat, 2 Sep 2017 15:42:47 +0000 (00:42 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 2 Sep 2017 15:42:47 +0000 (17:42 +0200)
commit6a4e2db661f47a318bbf93a07ba9f16f7bac3ee0
treef806d4d6f236059d624f691254b7bdffb5541497
parentbfa7f9ebf22581a387606716fe3f86e85e1c9db5
Raise an error for remote url in StatusFinder (#4776)

* Raise an error for remote url in StatusFinder

Previous implementation had allowed remote url with status id which also exists on local.

Then that bug leads /api/web/embed to return wrong embed url.

* Fix oembed_controller_spec
app/lib/status_finder.rb
spec/controllers/api/oembed_controller_spec.rb
spec/lib/status_finder_spec.rb