fix /inbox for Relay

This commit is contained in:
Maksim Pechnikov 2019-08-22 22:39:06 +03:00
commit 8dc6a6b210
4 changed files with 17 additions and 7 deletions

View file

@ -53,4 +53,10 @@ defmodule Pleroma.Signature do
HTTPSignatures.sign(private_key, user.ap_id <> "#main-key", headers)
end
end
def signed_date, do: signed_date(NaiveDateTime.utc_now())
def signed_date(%NaiveDateTime{} = date) do
Timex.format!(date, "{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT")
end
end