X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fwebsub%2Fwebsub_client_subscription.ex;h=8cea029393f8caa3d68582407ef1967e24ca6461;hb=ec1ec32f209f20ba59b03021ac207832669ceae6;hp=341e27c518b4cae23c147a50978f5192f7462659;hpb=c5fa682c317717c64168bf2d77b28d805ffff450;p=akkoma diff --git a/lib/pleroma/web/websub/websub_client_subscription.ex b/lib/pleroma/web/websub/websub_client_subscription.ex index 341e27c51..8cea02939 100644 --- a/lib/pleroma/web/websub/websub_client_subscription.ex +++ b/lib/pleroma/web/websub/websub_client_subscription.ex @@ -1,12 +1,15 @@ defmodule Pleroma.Web.Websub.WebsubClientSubscription do use Ecto.Schema + alias Pleroma.User schema "websub_client_subscriptions" do - field :topic, :string - field :secret, :string - field :valid_until, :naive_datetime - field :state, :string - field :subscribers, {:array, :string}, default: [] + field(:topic, :string) + field(:secret, :string) + field(:valid_until, :naive_datetime) + field(:state, :string) + field(:subscribers, {:array, :string}, default: []) + field(:hub, :string) + belongs_to(:user, User) timestamps() end