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
53d05af5
Commit
53d05af5
authored
May 03, 2017
by
lain
Browse files
Fix Mastodon signature bug.
parent
5d7831ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/websub/websub.ex
View file @
53d05af5
...
...
@@ -52,7 +52,7 @@ def publish(topic, user, activity) do
end
def
sign
(
secret
,
doc
)
do
:crypto
.
hmac
(
:sha
,
secret
,
to_string
(
doc
))
|>
Base
.
encode16
:crypto
.
hmac
(
:sha
,
secret
,
to_string
(
doc
))
|>
Base
.
encode16
|>
String
.
downcase
end
def
incoming_subscription_request
(
user
,
%{
"hub.mode"
=>
"subscribe"
}
=
params
)
do
...
...
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