From: William Pitcock Date: Fri, 9 Nov 2018 08:42:33 +0000 (+0000) Subject: activitypub: utils: switch to using new Notification.get_notified_from_activity(). X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6cadfcb21eb58de3d4c635fb563cd4bcebffd3e2;p=akkoma activitypub: utils: switch to using new Notification.get_notified_from_activity(). --- diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index fd9c5eb59..a9a4c895b 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -1,5 +1,5 @@ defmodule Pleroma.Web.ActivityPub.Utils do - alias Pleroma.{Repo, Web, Object, Activity, User} + alias Pleroma.{Repo, Web, Object, Activity, User, Notification} alias Pleroma.Web.Router.Helpers alias Pleroma.Web.Endpoint alias Ecto.{Changeset, UUID} @@ -96,7 +96,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do end def get_notified_from_object(object) do - User.get_notified_from_activity(%Activity{data: object}, false) + Notification.get_notified_from_activity(%Activity{data: object}, false) end def create_context(context) do