Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
e8a311ec
Commit
e8a311ec
authored
Apr 27, 2017
by
lain
Browse files
Add user and hub to websub client subscriptions.
parent
d1dce56a
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/websub/websub_client_subscription.ex
View file @
e8a311ec
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
...
...
priv/repo/migrations/20170427054757_add_user_and_hub.exs
0 → 100644
View file @
e8a311ec
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment