fix(federation): handle string values for tags when constructing mentions

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-06-20 15:38:19 +02:00
parent 552ab4c80b
commit 2729d5ed7a
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -122,6 +122,8 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Utils do
create_mention(mention, acc)
end
defp create_mention(_, acc), do: acc
@spec maybe_fetch_actor_and_attributed_to_id(map()) ::
{:ok, Actor.t(), Actor.t() | nil} | {:error, atom()}
def maybe_fetch_actor_and_attributed_to_id(%{