rich media: use cachex to avoid flooding remote servers
[akkoma] / lib / pleroma / web / rich_media / parsers / ogp.ex
index 75084c7eeceb09ef4745d363cf5b617f867a721c..5773a52632f476ec328996c525102d16ed03189a 100644 (file)
@@ -17,8 +17,8 @@ defmodule Pleroma.Web.RichMedia.Parsers.OGP do
     html |> Floki.find("meta[property^='og:']")
   end
 
-  defp normalize_attributes(tuple) do
-    {_tag, attributes, _children} = tuple
+  defp normalize_attributes(html_node) do
+    {_tag, attributes, _children} = html_node
 
     data =
       Enum.into(attributes, %{}, fn {name, value} ->