X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Foauth.ex;h=2f1b8708d54af29210c1b2fd1d8578058531181a;hb=2f77842bd3c07d915cd341f7d3ba1f9053cc3a18;hp=761b80fdeb451d365c928f7d65c7e136a8e3085f;hpb=063baca5e4f3a100c0d45dffb14e4968599ef43b;p=akkoma
diff --git a/lib/pleroma/web/oauth.ex b/lib/pleroma/web/oauth.ex
index 761b80fde..2f1b8708d 100644
--- a/lib/pleroma/web/oauth.ex
+++ b/lib/pleroma/web/oauth.ex
@@ -1,24 +1,6 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2019 Pleroma Authors
+# Copyright © 2017-2020 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.OAuth do
- def parse_scopes(nil) do
- nil
- end
-
- def parse_scopes(scopes) when is_list(scopes) do
- scopes
- end
-
- def parse_scopes(scopes) do
- scopes =
- scopes
- |> to_string()
- |> String.trim()
-
- if scopes == "",
- do: [],
- else: String.split(scopes, [" ", ","])
- end
end