From 5dc68d303b8ee07604e89fafb8c18d051e395bff Mon Sep 17 00:00:00 2001 From: lain Date: Thu, 22 Feb 2018 09:02:34 +0100 Subject: [PATCH] Get objects that people you know favorite. --- lib/pleroma/web/activity_pub/transmogrifier.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 395436c5c..a845d64b5 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -81,7 +81,7 @@ def handle_incoming(%{"type" => "Follow", "object" => followed, "actor" => follo def handle_incoming(%{"type" => "Like", "object" => object_id, "actor" => actor, "id" => id} = data) do with %User{} = actor <- User.get_or_fetch_by_ap_id(actor), - %Object{} = object <- Object.get_by_ap_id(object_id), + {:ok, object} <- get_obj_helper(object_id) || ActivityPub.fetch_object_from_id(object_id), {:ok, activity, object} <- ActivityPub.like(actor, object, id, false) do {:ok, activity} else