Explorar el Código

Apply suggestion to lib/pleroma/object/fetcher.ex

tags/v1.1.4
rinpatch hace 5 años
padre
commit
c3ecaea64d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      lib/pleroma/object/fetcher.ex

+ 2
- 1
lib/pleroma/object/fetcher.ex Ver fichero

@@ -97,7 +97,8 @@ defmodule Pleroma.Object.Fetcher do
end
end

def fetch_and_contain_remote_object_from_id(_id) do
def fetch_and_contain_remote_object_from_id(%{"id" => id), do: fetch_and_contain_remote_object_from_id(id)
def fetch_and_contain_remote_object_from_id(_id), do: {:error, "id must be a string"}
{:error, "id must be a string"}
end
end

Cargando…
Cancelar
Guardar