Skip to content
Snippets Groups Projects
Commit 6cadfcb2 authored by kaniini's avatar kaniini
Browse files

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

parent cdfdd77e
Branches
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment