瀏覽代碼

Merge branch 'hotfix/http-date-header' into 'develop'

activitypub: fix date header format

See merge request pleroma/pleroma!879
tags/v1.1.4
kaniini 5 年之前
父節點
當前提交
b91a6dd85e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      lib/pleroma/web/activity_pub/activity_pub.ex

+ 1
- 1
lib/pleroma/web/activity_pub/activity_pub.ex 查看文件

@@ -828,7 +828,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do

date =
NaiveDateTime.utc_now()
|> Timex.format!("{WDshort}, {D} {Mshort} {YYYY} {h24}:{m}:{s} GMT")
|> Timex.format!("{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT")

signature =
Pleroma.Web.HTTPSignatures.sign(actor, %{


Loading…
取消
儲存