diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-08-01 10:22:03 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-08-01 10:32:02 +0000 |
commit | 3be58ad34ea69b1764245546c4d67a92e4d70328 (patch) | |
tree | b64a4b2682371a2a9f6cdfeb10aa9fb4127c8875 /lib | |
parent | ab4b4538ce412c15a80a17cb769aba3f82664b3e (diff) | |
download | pleroma-3be58ad34ea69b1764245546c4d67a92e4d70328.tar.gz |
activitypub: actually send digest header when federating
this is needed for backwards compatibility with non-digest pleroma instances
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 90a39ce69..ec605b694 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -653,7 +653,11 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do @httpoison.post( inbox, json, - [{"Content-Type", "application/activity+json"}, {"signature", signature}], + [ + {"Content-Type", "application/activity+json"}, + {"signature", signature}, + {"digest", digest} + ], hackney: [pool: :default] ) end |