Fix invalid types
lib/pleroma/web/streamer.ex:37:unknown_type Unknown type: Map.t/0. ________________________________________________________________________________ lib/pleroma/web/streamer.ex:63:unknown_type Unknown type: Map.t/0.
This commit is contained in:
parent
593c7e26d4
commit
e3f52ee13f
|
@ -34,7 +34,7 @@ def registry, do: @registry
|
||||||
stream :: String.t(),
|
stream :: String.t(),
|
||||||
User.t() | nil,
|
User.t() | nil,
|
||||||
Token.t() | nil,
|
Token.t() | nil,
|
||||||
Map.t() | nil
|
map() | nil
|
||||||
) ::
|
) ::
|
||||||
{:ok, topic :: String.t()} | {:error, :bad_topic} | {:error, :unauthorized}
|
{:ok, topic :: String.t()} | {:error, :bad_topic} | {:error, :unauthorized}
|
||||||
def get_topic_and_add_socket(stream, user, oauth_token, params \\ %{}) do
|
def get_topic_and_add_socket(stream, user, oauth_token, params \\ %{}) do
|
||||||
|
@ -60,7 +60,7 @@ defp can_access_stream(user, oauth_token, kind) do
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc "Expand and authorizes a stream"
|
@doc "Expand and authorizes a stream"
|
||||||
@spec get_topic(stream :: String.t() | nil, User.t() | nil, Token.t() | nil, Map.t()) ::
|
@spec get_topic(stream :: String.t() | nil, User.t() | nil, Token.t() | nil, map()) ::
|
||||||
{:ok, topic :: String.t() | nil} | {:error, :bad_topic}
|
{:ok, topic :: String.t() | nil} | {:error, :bad_topic}
|
||||||
def get_topic(stream, user, oauth_token, params \\ %{})
|
def get_topic(stream, user, oauth_token, params \\ %{})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue