Remove legacy Instagram oEmbed provider

This commit is contained in:
Ronald Barendse
2020-10-13 23:32:52 +02:00
committed by Nathan Woulfe
parent 28bc93f100
commit 1330da533c
3 changed files with 0 additions and 27 deletions

View File

@@ -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();
}
}
}

View File

@@ -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>()

View File

@@ -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" />