diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-04-27 09:44:20 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-04-27 09:44:20 +0200 |
commit | e8a311ecffe1fb19a3d194b1c5628853263909a7 (patch) | |
tree | dab2f0d4ad1787be474b057ac520ba05ef7336ba /lib | |
parent | d1dce56a85e041f78e1d50900a0c9591610de2b9 (diff) | |
download | pleroma-e8a311ecffe1fb19a3d194b1c5628853263909a7.tar.gz |
Add user and hub to websub client subscriptions.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/websub/websub_client_subscription.ex | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/websub/websub_client_subscription.ex b/lib/pleroma/web/websub/websub_client_subscription.ex index 341e27c51..c7a25ea22 100644 --- a/lib/pleroma/web/websub/websub_client_subscription.ex +++ b/lib/pleroma/web/websub/websub_client_subscription.ex @@ -1,5 +1,6 @@ defmodule Pleroma.Web.Websub.WebsubClientSubscription do use Ecto.Schema + alias Pleroma.User schema "websub_client_subscriptions" do field :topic, :string @@ -7,6 +8,8 @@ defmodule Pleroma.Web.Websub.WebsubClientSubscription do field :valid_until, :naive_datetime field :state, :string field :subscribers, {:array, :string}, default: [] + field :hub, :string + belongs_to :user, User timestamps() end |