From e020075a853a8f77cfb762bb17155dd1edbaa5c5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 18:24:38 +0100 Subject: [PATCH] Investigate activities Signed-off-by: Thomas Citharel --- lib/service/activity_pub/activity_pub.ex | 7 ------- lib/service/federator.ex | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/service/activity_pub/activity_pub.ex b/lib/service/activity_pub/activity_pub.ex index d458dcfc2..715eb8570 100644 --- a/lib/service/activity_pub/activity_pub.ex +++ b/lib/service/activity_pub/activity_pub.ex @@ -293,13 +293,6 @@ defmodule Mobilizon.Service.ActivityPub do end def user_data_from_user_object(data) do - name = - if String.trim(data["name"]) === "" do - data["preferredUsername"] - else - data["name"] - end - user_data = %{ url: data["id"], info: %{ diff --git a/lib/service/federator.ex b/lib/service/federator.ex index f2c4259fd..24d8abf07 100644 --- a/lib/service/federator.ex +++ b/lib/service/federator.ex @@ -44,7 +44,7 @@ defmodule Mobilizon.Service.Federator do def handle(:incoming_ap_doc, params) do Logger.info("Handling incoming AP activity") - Logger.debug(inspect(params)) + Logger.info(inspect(params)) with {:ok, _activity} <- Transmogrifier.handle_incoming(params) do else