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
This commit is contained in:
1 parent
bfa7f9ebf2
commit
6a4e2db661
3 files changed
+13
No files matched your search
@@ -8,6 +8,7 @@ RSpec.describe Api::OEmbedController, type: :controller do
|
||||
|
||||
describe 'GET #show' do
|
||||
before do
|
||||
request.host = Rails.configuration.x.local_domain
|
||||
get :show, params: { url: account_stream_entry_url(alice, status.stream_entry) }, format: :json
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user