summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-05-28 08:49:34 -0400
committerMark Felder <feld@feld.me>2024-05-28 08:49:34 -0400
commit0b864c3696e47ba1def6047905dad9065b0bee0e (patch)
tree38de0f3a1d99ad098ebf930d7c6f3e6cf3322aa7
parentbef15cde6141a977aebdfc998d6091a31c4fc2d6 (diff)
downloadpleroma-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.ex2
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)