From: Friendika Date: Tue, 23 Aug 2011 10:06:08 +0000 (-0700) Subject: don't process diaspora communications if no pubkey X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=afbc46c00f3fcd66603bb6b725fd687335376d2d;p=friendica.git don't process diaspora communications if no pubkey --- diff --git a/include/notifier.php b/include/notifier.php index 5cbd3deb19..14057c35b3 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -505,6 +505,9 @@ function notifier_run($argv, $argc){ require_once('include/diaspora.php'); if(get_config('system','dfrn_only') || (! get_config('system','diaspora_enabled')) || (! $normal_mode)) break; + + if(! contact['pubkey']) + break; if($target_item['verb'] === ACTIVITY_DISLIKE) { // unsupported @@ -625,6 +628,9 @@ function notifier_run($argv, $argc){ require_once('include/diaspora.php'); if(get_config('system','dfrn_only') || (! get_config('system','diaspora_enabled')) || (! $normal_mode)) break; + + if(! contact['pubkey']) + break; if($target_item['verb'] === ACTIVITY_DISLIKE) { // unsupported