]> git.mxchange.org Git - friendica.git/commitdiff
Added documentation
authorMichael <heluecht@pirati.ca>
Fri, 16 Jun 2017 21:01:56 +0000 (21:01 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 16 Jun 2017 21:01:56 +0000 (21:01 +0000)
include/diaspora.php

index b8462f6631cd11e972f7931f4895f27eae995708..ac87bcacb3e0a988d4f33d0618f09eae77b5ceed 100644 (file)
@@ -4,8 +4,8 @@
  * @brief The implementation of the diaspora protocol
  *
  * The new protocol is described here: http://diaspora.github.io/diaspora_federation/index.html
- * Currently this implementation here interprets the old and the new protocol and sends the old one.
- * This will change in the future.
+ * This implementation here interprets the old and the new protocol and sends the new one.
+ * In the future we will remove most stuff from "valid_posting" and interpret only the new protocol.
  */
 
 use Friendica\App;
@@ -2883,7 +2883,7 @@ class Diaspora {
                $new = Config::get('system', 'new_diaspora', null, true);
 
                if ($new) {
-                       if ($public) {
+                       if (!$public) {
                                $msg = Diaspora::encode_private_data($msg, $user, $contact, $prvkey, $pubkey);
                        }