X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Foauth%2Fapp.ex;h=bccc2ac967f48c4394c9f3bc47e9bc48daafc8f2;hb=1557b99beb3b406572ef2d3baaabed1c9baeca1c;hp=8b61bf3a4e964e1c2837d926aa100ef40ed54119;hpb=cd019a5927059bb52447add43a9b29893928c416;p=akkoma diff --git a/lib/pleroma/web/oauth/app.ex b/lib/pleroma/web/oauth/app.ex index 8b61bf3a4..bccc2ac96 100644 --- a/lib/pleroma/web/oauth/app.ex +++ b/lib/pleroma/web/oauth/app.ex @@ -6,10 +6,11 @@ defmodule Pleroma.Web.OAuth.App do use Ecto.Schema import Ecto.Changeset + @type t :: %__MODULE__{} schema "apps" do field(:client_name, :string) field(:redirect_uris, :string) - field(:scopes, :string) + field(:scopes, {:array, :string}, default: []) field(:website, :string) field(:client_id, :string) field(:client_secret, :string)