mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 13:57:23 -04:00
OGP/TwitterCard: Add fallbacks in case the attachment key is nonexistent
This commit is contained in:
parent
876b5b45a3
commit
fd4963006a
2 changed files with 3 additions and 0 deletions
|
@ -121,4 +121,6 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
|
|||
acc ++ rendered_tags
|
||||
end)
|
||||
end
|
||||
|
||||
defp build_attachments(_), do: []
|
||||
end
|
||||
|
|
|
@ -116,6 +116,7 @@ defmodule Pleroma.Web.Metadata.Providers.TwitterCard do
|
|||
acc ++ rendered_tags
|
||||
end)
|
||||
end
|
||||
defp build_attachments(_id, _object), do: []
|
||||
|
||||
defp player_url(id) do
|
||||
Pleroma.Web.Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :notice_player, id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue