Fix a line no longer used

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-07-31 11:08:29 +02:00
parent 44c84ab665
commit 74031892c5
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -248,8 +248,6 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
Logger.info("Handle incoming to create a resource") Logger.info("Handle incoming to create a resource")
Logger.debug(inspect(data)) Logger.debug(inspect(data))
group_url = if is_list(to) and not is_nil(to), do: hd(to), else: to
with {:existing_resource, nil} <- with {:existing_resource, nil} <-
{:existing_resource, Resources.get_resource_by_url(object_url)}, {:existing_resource, Resources.get_resource_by_url(object_url)},
object_data when is_map(object_data) <- object_data when is_map(object_data) <-