From: lain Date: Thu, 22 Feb 2018 08:02:34 +0000 (+0100) Subject: Get objects that people you know favorite. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5dc68d303b8ee07604e89fafb8c18d051e395bff;p=akkoma Get objects that people you know favorite. --- 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 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do 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