activitypub: actually send digest header when federating
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 1 Aug 2018 10:22:03 +0000 (10:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 1 Aug 2018 10:32:02 +0000 (10:32 +0000)
this is needed for backwards compatibility with non-digest pleroma instances

lib/pleroma/web/activity_pub/activity_pub.ex

index 90a39ce6989294b636f452851f809074c496ef11..ec605b694f49557b0f7dcfb472618ae98d324439 100644 (file)
@@ -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