Pleroma.Web.ActivityPub.Utils: dialyzer error
lib/pleroma/web/activity_pub/utils.ex:779:guard_fail The guard clause: when _ :: %Pleroma.Object{_ => _} === nil can never succeed.
This commit is contained in:
parent
082d665160
commit
e2fc03ec72
|
@ -776,10 +776,9 @@ defp build_flag_object(act) when is_map(act) or is_binary(act) do
|
||||||
build_flag_object(object)
|
build_flag_object(object)
|
||||||
|
|
||||||
nil ->
|
nil ->
|
||||||
if %Object{} = object = Object.get_by_ap_id(id) do
|
case Object.get_by_ap_id(id) do
|
||||||
build_flag_object(object)
|
%Object{} = object -> build_flag_object(object)
|
||||||
else
|
_ -> %{"id" => id, "deleted" => true}
|
||||||
%{"id" => id, "deleted" => true}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue