diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-22 12:51:11 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-22 12:51:11 -0500 |
commit | 2224f342dd565863a31f509499823ce09d8ca047 (patch) | |
tree | b5ee447d520585b4bfb92c1d492f0f85f1774eee | |
parent | e993c811f4fb0b8c0ac999496b14a70c808e6b4c (diff) | |
download | pleroma-2224f342dd565863a31f509499823ce09d8ca047.tar.gz |
Cycles: break cycles caused by lib/pleroma/web/activity_pub/activity_pub/streaming.ex
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub/persisting.ex | 2 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub/streaming.ex | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub/persisting.ex b/lib/pleroma/web/activity_pub/activity_pub/persisting.ex index 5ec8b7bab..f39cd000a 100644 --- a/lib/pleroma/web/activity_pub/activity_pub/persisting.ex +++ b/lib/pleroma/web/activity_pub/activity_pub/persisting.ex @@ -3,5 +3,5 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.ActivityPub.ActivityPub.Persisting do - @callback persist(map(), keyword()) :: {:ok, Activity.t() | Object.t()} + @callback persist(map(), keyword()) :: {:ok, struct()} end diff --git a/lib/pleroma/web/activity_pub/activity_pub/streaming.ex b/lib/pleroma/web/activity_pub/activity_pub/streaming.ex index 983168bff..f2cfbefdc 100644 --- a/lib/pleroma/web/activity_pub/activity_pub/streaming.ex +++ b/lib/pleroma/web/activity_pub/activity_pub/streaming.ex @@ -3,10 +3,6 @@ # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.ActivityPub.ActivityPub.Streaming do - alias Pleroma.Activity - alias Pleroma.Object - alias Pleroma.User - - @callback stream_out(Activity.t()) :: any() - @callback stream_out_participations(Object.t(), User.t()) :: any() + @callback stream_out(activity :: struct()) :: any() + @callback stream_out_participations(object :: struct(), user :: struct()) :: any() end |