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
}
}
- 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.
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
}
}
- 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.