Diaspora: Comments and Likes are now signed at any time

This commit is contained in:
Michael Vogel 2016-04-20 23:27:33 +02:00
parent 8c8e635d2e
commit e333efc9aa
2 changed files with 6 additions and 22 deletions

View file

@ -3122,12 +3122,6 @@ class diaspora {
*/
public static function store_like_signature($contact, $post_id) {
$enabled = intval(get_config('system','diaspora_enabled'));
if (!$enabled) {
logger('Diaspora support disabled, not storing like signature', LOGGER_DEBUG);
return false;
}
// Is the contact the owner? Then fetch the private key
if (!$contact['self'] OR ($contact['uid'] == 0)) {
logger("No owner post, so not storing signature", LOGGER_DEBUG);
@ -3191,12 +3185,6 @@ class diaspora {
return false;
}
$enabled = intval(get_config('system','diaspora_enabled'));
if (!$enabled) {
logger('Diaspora support disabled, not storing comment signature', LOGGER_DEBUG);
return false;
}
$contact["uprvkey"] = $uprvkey;
$message = self::construct_comment($item, $contact);