]> git.mxchange.org Git - friendica.git/commitdiff
removed some test code
authorMichael Vogel <icarus@dabo.de>
Thu, 21 Jan 2016 12:38:30 +0000 (13:38 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 21 Jan 2016 12:38:30 +0000 (13:38 +0100)
include/diaspora.php

index 584ec92a49b9958cc1e6789b4bdfcce1713328c5..b193dffadb796920074eb1802b20b122ffaf13a2 100644 (file)
@@ -1488,7 +1488,8 @@ function diaspora_comment($importer,$xml,$msg) {
                        logger('diaspora_comment: top-level owner verification failed.');
                        return;
                }
-       } elseif($author_signature) {
+       }
+       else {
                // If there's no parent_author_signature, then we've received the comment
                // from the comment creator. In that case, the person is commenting on
                // our post, so he/she must be a contact of ours and his/her public key
@@ -1502,11 +1503,6 @@ function diaspora_comment($importer,$xml,$msg) {
                }
        }
 
-       if (!$parent_author_signature AND !$author_signature) {
-               logger("No signature in comment. Comment will be rejected.");
-               return;
-       }
-
        // Phew! Everything checks out. Now create an item.
 
        // Find the original comment author information.
@@ -2131,7 +2127,7 @@ function diaspora_like($importer,$xml,$msg) {
                        logger('diaspora_like: top-level owner verification failed.');
                        return;
                }
-       } elseif($author_signature) {
+       } else {
                // If there's no parent_author_signature, then we've received the like
                // from the like creator. In that case, the person is "like"ing
                // our post, so he/she must be a contact of ours and his/her public key
@@ -2147,11 +2143,6 @@ function diaspora_like($importer,$xml,$msg) {
                }
        }
 
-       if (!$parent_author_signature AND !$author_signature) {
-               logger("No signature in like. Like will be rejected.");
-               return;
-       }
-
        // Phew! Everything checks out. Now create an item.
 
        // Find the original comment author information.