diff options
author | Mark Felder <feld@feld.me> | 2024-05-28 08:49:34 -0400 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2024-05-28 08:49:34 -0400 |
commit | 0b864c3696e47ba1def6047905dad9065b0bee0e (patch) | |
tree | 38de0f3a1d99ad098ebf930d7c6f3e6cf3322aa7 | |
parent | bef15cde6141a977aebdfc998d6091a31c4fc2d6 (diff) | |
download | pleroma-0b864c3696e47ba1def6047905dad9065b0bee0e.tar.gz pleroma-0b864c3696e47ba1def6047905dad9065b0bee0e.zip |
Dialyzer: fix invalid @spec
lib/pleroma/notification.ex:492:invalid_contract
The @spec for the function does not match the success typing of the function.
Function:
Pleroma.Notification.get_notified_from_activity/2
Success typing:
@spec get_notified_from_activity(_, _) :: [any()]
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 4f714b25f..f521a2998 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -489,7 +489,7 @@ defmodule Pleroma.Notification do NOTE: might be called for FAKE Activities, see ActivityPub.Utils.get_notified_from_object/1 """ - @spec get_notified_from_activity(Activity.t(), boolean()) :: {list(User.t()), list(User.t())} + @spec get_notified_from_activity(Activity.t(), boolean()) :: list(User.t()) def get_notified_from_activity(activity, local_only \\ true) def get_notified_from_activity(%Activity{data: %{"type" => type}} = activity, local_only) |