Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
host
Smilodon
Commits
3ba65316
Commit
3ba65316
authored
Nov 28, 2016
by
Eugen Rochko
Browse files
Fix setting of confirmed=true on successful confirmation
parent
50638174
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/admin/pubsubhubbub_controller.rb
View file @
3ba65316
...
...
@@ -6,6 +6,6 @@ class Admin::PubsubhubbubController < ApplicationController
layout
'public'
def
index
@subscriptions
=
Subscription
.
includes
(
:account
).
paginate
(
page:
params
[
:page
],
per_page:
40
)
@subscriptions
=
Subscription
.
order
(
'id desc'
).
includes
(
:account
).
paginate
(
page:
params
[
:page
],
per_page:
40
)
end
end
app/workers/pubsubhubbub/confirmation_worker.rb
View file @
3ba65316
...
...
@@ -10,6 +10,7 @@ class Pubsubhubbub::ConfirmationWorker
subscription
.
secret
=
secret
subscription
.
lease_seconds
=
lease_seconds
subscription
.
confirmed
=
true
response
=
HTTP
.
headers
(
user_agent:
'Mastodon/PubSubHubbub'
)
.
timeout
(
:per_operation
,
write:
20
,
connect:
20
,
read:
50
)
...
...
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