FIXME: Diaspora has its own salmon slap semantics

This commit is contained in:
Mikael Nordfeldth 2015-10-05 11:28:33 +02:00
parent 3902dc963a
commit ee6096cca8

View File

@ -204,6 +204,9 @@ class DiasporaPlugin extends Plugin
* 2. Base64-encode the encrypted payload message.
*/
$payload = $inner_key->encrypt($magic_env->getData());
//FIXME: This means we don't actually put an <atom:entry> in the payload,
// since Diaspora has its own update method! Silly me. Read up on:
// https://wiki.diasporafoundation.org/Federation_Message_Semantics
$magic_env->signMessage(base64_encode($payload), 'application/xml');