From 1330da533c3d2707e451db08d5c0b969e191f2b8 Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Tue, 13 Oct 2020 23:32:52 +0200 Subject: [PATCH] Remove legacy Instagram oEmbed provider --- .../Media/EmbedProviders/Instagram.cs | 25 ------------------- src/Umbraco.Web/Runtime/WebInitialComposer.cs | 1 - src/Umbraco.Web/Umbraco.Web.csproj | 1 - 3 files changed, 27 deletions(-) delete mode 100644 src/Umbraco.Web/Media/EmbedProviders/Instagram.cs diff --git a/src/Umbraco.Web/Media/EmbedProviders/Instagram.cs b/src/Umbraco.Web/Media/EmbedProviders/Instagram.cs deleted file mode 100644 index 1862d77cad..0000000000 --- a/src/Umbraco.Web/Media/EmbedProviders/Instagram.cs +++ /dev/null @@ -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 RequestParams => new Dictionary(); - - public override string GetMarkup(string url, int maxWidth = 0, int maxHeight = 0) - { - var requestUrl = base.GetEmbedProviderUrl(url, maxWidth, maxHeight); - var oembed = base.GetJsonResponse(requestUrl); - - return oembed.GetHtml(); - } - } -} diff --git a/src/Umbraco.Web/Runtime/WebInitialComposer.cs b/src/Umbraco.Web/Runtime/WebInitialComposer.cs index 112910930e..ac7e34d5cb 100644 --- a/src/Umbraco.Web/Runtime/WebInitialComposer.cs +++ b/src/Umbraco.Web/Runtime/WebInitialComposer.cs @@ -270,7 +270,6 @@ namespace Umbraco.Web.Runtime // note: IEmbedProvider is not IDiscoverable - think about it if going for type scanning composition.OEmbedProviders() .Append() - .Append() .Append() .Append() .Append() diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index 1b48b9ca0d..fa98cebd05 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -196,7 +196,6 @@ -