B Providers/ActivityPub: Ensure that nothing explodes on unexpected input.

This commit is contained in:
Lain Soykaf 2024-11-12 14:22:02 +04:00
commit 5b3e4cf49b
2 changed files with 9 additions and 0 deletions

View file

@ -16,4 +16,7 @@ defmodule Pleroma.Web.Metadata.Providers.ActivityPub do
def build_tags(%{user: user}) do
[{:link, [rel: "alternate", type: "application/activity+json", href: user.ap_id], []}]
end
@impl Provider
def build_tags(_), do: []
end