Remove legacy Instagram oEmbed provider
This commit is contained in:
committed by
Nathan Woulfe
parent
28bc93f100
commit
1330da533c
@@ -1,25 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
public class Instagram : EmbedProviderBase
|
||||
{
|
||||
public override string ApiEndpoint => "http://api.instagram.com/oembed";
|
||||
|
||||
public override string[] UrlSchemeRegex => new string[]
|
||||
{
|
||||
@"instagram.com\/p\/*",
|
||||
@"instagr.am\/p\/*"
|
||||
};
|
||||
|
||||
public override Dictionary<string, string> RequestParams => new Dictionary<string, string>();
|
||||
|
||||
public override string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0)
|
||||
{
|
||||
var requestUrl = base.GetEmbedProviderUrl(url, maxWidth, maxHeight);
|
||||
var oembed = base.GetJsonResponse<OEmbedResponse>(requestUrl);
|
||||
|
||||
return oembed.GetHtml();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -270,7 +270,6 @@ namespace Umbraco.Web.Runtime
|
||||
// note: IEmbedProvider is not IDiscoverable - think about it if going for type scanning
|
||||
composition.OEmbedProviders()
|
||||
.Append<YouTube>()
|
||||
.Append<Instagram>()
|
||||
.Append<Twitter>()
|
||||
.Append<Vimeo>()
|
||||
.Append<DailyMotion>()
|
||||
|
||||
@@ -196,7 +196,6 @@
|
||||
<Compile Include="Media\EmbedProviders\Twitter.cs" />
|
||||
<Compile Include="Media\EmbedProviders\Kickstarter.cs" />
|
||||
<Compile Include="Media\EmbedProviders\OEmbedResponse.cs" />
|
||||
<Compile Include="Media\EmbedProviders\Instagram.cs" />
|
||||
<Compile Include="Media\EmbedProviders\Slideshare.cs" />
|
||||
<Compile Include="Media\Exif\BitConverterEx.cs" />
|
||||
<Compile Include="Media\Exif\ExifBitConverter.cs" />
|
||||
|
||||
Reference in New Issue
Block a user