From 180958185fb6abe075fb89ad87420c9e348f82b1 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 5 Oct 2015 12:49:54 +0200 Subject: [PATCH] Found newer Diaspora protocol specifications http://www.rubydoc.info/github/Raven24/diaspora-federation/master/DiasporaFederation/Salmon/EncryptedSlap --- plugins/Diaspora/DiasporaPlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Diaspora/DiasporaPlugin.php b/plugins/Diaspora/DiasporaPlugin.php index 616323250f..376ad098b2 100644 --- a/plugins/Diaspora/DiasporaPlugin.php +++ b/plugins/Diaspora/DiasporaPlugin.php @@ -104,12 +104,13 @@ class DiasporaPlugin extends Plugin /** * https://wiki.diasporafoundation.org/Federation_protocol_overview + * http://www.rubydoc.info/github/Raven24/diaspora-federation/master/DiasporaFederation/Salmon/EncryptedSlap * * Constructing the encryption header */ - // For some reason it's supposed to be inside an - $xs->elementStart('entry', array('xmlns'=>'http://www.w3.org/2005/Atom')); + // For some reason diaspora wants the salmon slap in a header. + $xs->elementStart('diaspora', array('xmlns'=>'https://joindiaspora.com/protocol')); /** * Choose an AES key and initialization vector, suitable for the -- 2.39.2