Investigate activities
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6b4860b217
commit
e020075a85
@ -293,13 +293,6 @@ defmodule Mobilizon.Service.ActivityPub do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def user_data_from_user_object(data) do
|
def user_data_from_user_object(data) do
|
||||||
name =
|
|
||||||
if String.trim(data["name"]) === "" do
|
|
||||||
data["preferredUsername"]
|
|
||||||
else
|
|
||||||
data["name"]
|
|
||||||
end
|
|
||||||
|
|
||||||
user_data = %{
|
user_data = %{
|
||||||
url: data["id"],
|
url: data["id"],
|
||||||
info: %{
|
info: %{
|
||||||
|
@ -44,7 +44,7 @@ defmodule Mobilizon.Service.Federator do
|
|||||||
|
|
||||||
def handle(:incoming_ap_doc, params) do
|
def handle(:incoming_ap_doc, params) do
|
||||||
Logger.info("Handling incoming AP activity")
|
Logger.info("Handling incoming AP activity")
|
||||||
Logger.debug(inspect(params))
|
Logger.info(inspect(params))
|
||||||
|
|
||||||
with {:ok, _activity} <- Transmogrifier.handle_incoming(params) do
|
with {:ok, _activity} <- Transmogrifier.handle_incoming(params) do
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user