An Elixir toolkit for the AT Protocol. hexdocs.pm/atex
elixir bluesky atproto decentralization
25
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(config): rename is_localhost/0 to localhost?/0 per Elixir boolean naming convention

+4 -4
+3 -3
lib/atex/config/oauth.ex
··· 42 42 @doc """ 43 43 Returns whether OAuth should be put into the localhost loopback mode. 44 44 """ 45 - @spec is_localhost() :: boolean() 46 - def is_localhost() do 45 + @spec localhost?() :: boolean() 46 + def localhost?() do 47 47 Keyword.get(Application.get_env(:atex, Atex.OAuth, []), :is_localhost, false) 48 48 end 49 49 ··· 56 56 """ 57 57 @spec client_id() :: String.t() 58 58 def client_id() do 59 - if is_localhost() do 59 + if localhost?() do 60 60 query = 61 61 %{redirect_uri: redirect_uri(), scope: scopes()} 62 62 |> URI.encode_query()
+1 -1
lib/atex/oauth/flow.ex
··· 230 230 } 231 231 232 232 body = 233 - if Config.is_localhost(), 233 + if Config.localhost?(), 234 234 do: body, 235 235 else: 236 236 Map.merge(body, %{