Commit e8a311ec authored by lain's avatar lain
Browse files

Add user and hub to websub client subscriptions.

parent d1dce56a
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
......
defmodule Pleroma.Repo.Migrations.AddUserAndHub do
use Ecto.Migration
def change do
alter table(:websub_client_subscriptions) do
add :hub, :string
add :user_id, references(:users)
end
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment