Rich Media Parser should use first og:image

This commit is contained in:
Mark Felder 2025-02-28 15:09:22 -08:00
commit cb073a9cd0
3 changed files with 173 additions and 1 deletions

View file

@ -9,7 +9,7 @@ defmodule Pleroma.Web.RichMedia.Parsers.MetaTagsParser do
|> Enum.reduce(data, fn el, acc ->
attributes = normalize_attributes(el, prefix, key_name, value_name)
Map.merge(acc, attributes)
Map.merge(attributes, acc)
end)
|> maybe_put_title(html)
end