Merge branch 'fix/1524-link_preview' into 'develop'
Meta tags parser respects first title tag Closes #1524 See merge request pleroma/pleroma!2157
This commit is contained in:
commit
2c121b2623
3 changed files with 2915 additions and 1 deletions
|
|
@ -48,6 +48,6 @@ defmodule Pleroma.Web.RichMedia.Parsers.MetaTagsParser do
|
|||
defp maybe_put_title(meta, _), do: meta
|
||||
|
||||
defp get_page_title(html) do
|
||||
Floki.find(html, "title") |> Floki.text()
|
||||
Floki.find(html, "title") |> List.first() |> Floki.text()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue