summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2025-06-26 18:02:21 +0200
committerJordan Bracco <href@random.sh>2025-06-26 18:02:21 +0200
commit127b130f5c0429c4ed191983bd3f1c9da4291d56 (patch)
treecd90c40e868b8a520605b3a1da3f6c609b8a7beb
parentlink: reddit: use proxy in handler, rewrite to old reddit otherwise (diff)
link: html: reverse meta tags order to original
this fix legorafi.fr which fucks up with two og:description
-rw-r--r--lib/plugins/link/html.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugins/link/html.ex b/lib/plugins/link/html.ex
index aa78810..1173526 100644
--- a/lib/plugins/link/html.ex
+++ b/lib/plugins/link/html.ex
@@ -44,6 +44,7 @@ defmodule Nola.Plugins.Link.HTML do
defp collect_open_graph(html) do
Floki.find(html, "head meta")
+ |> Enum.reverse()
|> Enum.reduce(%{}, &extract_meta_tag/2)
end