Attachment parsing, better magic key fetching.
This commit is contained in:
parent
16afea399d
commit
8141024259
12 changed files with 161 additions and 84 deletions
|
|
@ -33,7 +33,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||
|
||||
def salmon_incoming(conn, params) do
|
||||
{:ok, body, _conn} = read_body(conn)
|
||||
magic_key = Pleroma.Web.Salmon.fetch_magic_key(body)
|
||||
{:ok, magic_key} = Pleroma.Web.Salmon.fetch_magic_key(body)
|
||||
{:ok, doc} = Pleroma.Web.Salmon.decode_and_validate(magic_key, body)
|
||||
|
||||
Pleroma.Web.OStatus.handle_incoming(doc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue