]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Found newer Diaspora protocol specifications
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 5 Oct 2015 10:49:54 +0000 (12:49 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 5 Oct 2015 10:49:54 +0000 (12:49 +0200)
http://www.rubydoc.info/github/Raven24/diaspora-federation/master/DiasporaFederation/Salmon/EncryptedSlap

plugins/Diaspora/DiasporaPlugin.php

index 616323250f18409f87c315bded5575cebd91a22e..376ad098b20dbfda085730646765f84e2b7d7aa6 100644 (file)
@@ -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 <atom:entry>
-        $xs->elementStart('entry', array('xmlns'=>'http://www.w3.org/2005/Atom'));
+        // For some reason diaspora wants the salmon slap in a <diaspora> header.
+        $xs->elementStart('diaspora', array('xmlns'=>'https://joindiaspora.com/protocol'));
 
         /**
          * Choose an AES key and initialization vector, suitable for the