diff options
author | Friendika <info@friendika.com> | 2011-08-24 04:42:28 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-24 04:42:28 -0700 |
commit | a775474dff73e0e17e95bcfee42caeecdacf5295 (patch) | |
tree | 026618b3896f1170467114070d3a0c77e7f3856f /include/diaspora.php | |
parent | b6fdd3c76bd6d0f30a7973286ef19c10bf6326a6 (diff) | |
download | volse-hubzilla-a775474dff73e0e17e95bcfee42caeecdacf5295.tar.gz volse-hubzilla-a775474dff73e0e17e95bcfee42caeecdacf5295.tar.bz2 volse-hubzilla-a775474dff73e0e17e95bcfee42caeecdacf5295.zip |
cleaned up the conditions on when to and when not to relay.
Diffstat (limited to 'include/diaspora.php')
-rw-r--r-- | include/diaspora.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 563eaa4e2..75d47e05a 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -544,7 +544,6 @@ function diaspora_comment($importer,$xml,$msg) { if($parent_author_signature) { -// $owner_signed_data = $guid . ';' . $parent_guid . ';' . $text . ';' . $msg['author']; $owner_signed_data = $guid . ';' . $parent_guid . ';' . $text . ';' . $diaspora_handle; $parent_author_signature = base64_decode($parent_author_signature); @@ -619,13 +618,14 @@ function diaspora_comment($importer,$xml,$msg) { dbesc(base64_encode($author_signature)), dbesc($diaspora_handle) ); - } - // notify others -// proc_run('php','include/notifier.php','comment',$message_id); + // if the message isn't already being relayed, notify others + // the existence of parent_author_signature means the parent_author or owner + // is already relaying. + proc_run('php','include/notifier.php','comment',$message_id); + } return; - } function diaspora_photo($importer,$xml,$msg) { @@ -845,8 +845,12 @@ EOT; ); } - // notify others -// proc_run('php','include/notifier.php','comment',$message_id); + // if the message isn't already being relayed, notify others + // the existence of parent_author_signature means the parent_author or owner + // is already relaying. + + if(! $parent_author_signature) + proc_run('php','include/notifier.php','comment',$message_id); return; } |