projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix digest mix task on OTP releases
[akkoma]
/
lib
/
pleroma
/
web
/
oauth
/
scopes.ex
diff --git
a/lib/pleroma/web/oauth/scopes.ex
b/lib/pleroma/web/oauth/scopes.ex
index 8ecf901f3085112f008a8c3142c7d61637f241e4..6f06f1431587388d8c923a3e7ec852314d666b94 100644
(file)
--- a/
lib/pleroma/web/oauth/scopes.ex
+++ b/
lib/pleroma/web/oauth/scopes.ex
@@
-15,9
+15,10
@@
defmodule Pleroma.Web.OAuth.Scopes do
Note: `scopes` is used by Mastodon — supporting it but sticking to
OAuth's standard `scope` wherever we control it
"""
Note: `scopes` is used by Mastodon — supporting it but sticking to
OAuth's standard `scope` wherever we control it
"""
- @spec fetch_scopes(map(), list()) :: list()
+ @spec fetch_scopes(map() | struct(), list()) :: list()
+
def fetch_scopes(params, default) do
def fetch_scopes(params, default) do
- parse_scopes(params["scope"] || params["scopes"], default)
+ parse_scopes(params["scope"] || params["scopes"]
|| params[:scopes]
, default)
end
def parse_scopes(scopes, _default) when is_list(scopes) do
end
def parse_scopes(scopes, _default) when is_list(scopes) do