mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-06 00:49:46 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ defmodule Pleroma.Web.Streamer do
|
|||
stream :: String.t(),
|
||||
User.t() | nil,
|
||||
Token.t() | nil,
|
||||
Map.t() | nil
|
||||
map() | nil
|
||||
) ::
|
||||
{:ok, topic :: String.t()} | {:error, :bad_topic} | {:error, :unauthorized}
|
||||
def get_topic_and_add_socket(stream, user, oauth_token, params \\ %{}) do
|
||||
|
@ -60,7 +60,7 @@ defmodule Pleroma.Web.Streamer do
|
|||
end
|
||||
|
||||
@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}
|
||||
def get_topic(stream, user, oauth_token, params \\ %{})
|
||||
|
||||
|
|
Loading…
Reference in a new issue