activitypub: utils: switch to using new Notification.get_notified_from_activity().

This commit is contained in:
William Pitcock 2018-11-09 08:42:33 +00:00
parent cdfdd77e30
commit 6cadfcb21e
1 changed files with 2 additions and 2 deletions

View File

@ -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 @@ def generate_id(type) 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