aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/rich_media/helpers.ex
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-02-23 09:48:04 -0600
committerAlex Gleason <alex@alexgleason.me>2021-02-23 09:50:02 -0600
commit36a5ff78031a0e197206819cfcc22273fd76c351 (patch)
tree515b5c8ced519e95dc9b7015c03a60e4d731498e /lib/pleroma/web/rich_media/helpers.ex
parentd2d9080d4c9fdae5f22d81a064a08fe0084b1208 (diff)
downloadpleroma-youtube-fix.tar.gz
Move YouTube oembed hack to oembed parseryoutube-fix
Diffstat (limited to 'lib/pleroma/web/rich_media/helpers.ex')
-rw-r--r--lib/pleroma/web/rich_media/helpers.ex7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex
index 4d1c2dc9a..566fc8c8a 100644
--- a/lib/pleroma/web/rich_media/helpers.ex
+++ b/lib/pleroma/web/rich_media/helpers.ex
@@ -78,13 +78,6 @@ defmodule Pleroma.Web.RichMedia.Helpers do
def fetch_data_for_activity(_), do: %{}
- # YouTube's oEmbed implementation is broken, requiring this hack.
- # https://github.com/oscarotero/Embed/issues/417#issuecomment-746673027
- def rich_media_get("http://www.youtube.com/oembed?" <> params) do
- # Use HTTPS explicitly, even though YouTube returns HTTP
- rich_media_get("https://www.youtube.com/oembed?#{params}")
- end
-
def rich_media_get(url) do
headers = [{"user-agent", Pleroma.Application.user_agent() <> "; Bot"}]