removed some test code

This commit is contained in:
Michael Vogel 2016-01-21 13:38:30 +01:00
parent d768074afd
commit 54f42cb706

View file

@ -1488,7 +1488,8 @@ function diaspora_comment($importer,$xml,$msg) {
logger('diaspora_comment: top-level owner verification failed.'); logger('diaspora_comment: top-level owner verification failed.');
return; return;
} }
} elseif($author_signature) { }
else {
// If there's no parent_author_signature, then we've received the comment // 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 // 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 // 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. // Phew! Everything checks out. Now create an item.
// Find the original comment author information. // Find the original comment author information.
@ -2131,7 +2127,7 @@ function diaspora_like($importer,$xml,$msg) {
logger('diaspora_like: top-level owner verification failed.'); logger('diaspora_like: top-level owner verification failed.');
return; return;
} }
} elseif($author_signature) { } else {
// If there's no parent_author_signature, then we've received the like // 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 // 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 // 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. // Phew! Everything checks out. Now create an item.
// Find the original comment author information. // Find the original comment author information.