mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
Diaspora: Comments and Likes are now signed at any time
This commit is contained in:
parent
8c8e635d2e
commit
e333efc9aa
2 changed files with 6 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue