aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-29 22:50:41 -0700
committerFriendika <info@friendika.com>2011-08-29 22:50:41 -0700
commit0f1bc6e9571e367b37246e43ce08921bf317fa7c (patch)
tree3d1ab86edb2c87de78a8be18c31bac239e0a36ef /include/diaspora.php
parent22d9d97d71a94fcfc057c350c4dfad5e36fb6dd0 (diff)
downloadvolse-hubzilla-0f1bc6e9571e367b37246e43ce08921bf317fa7c.tar.gz
volse-hubzilla-0f1bc6e9571e367b37246e43ce08921bf317fa7c.tar.bz2
volse-hubzilla-0f1bc6e9571e367b37246e43ce08921bf317fa7c.zip
log every possible diaspora return for posts and comments
Diffstat (limited to 'include/diaspora.php')
-rw-r--r--include/diaspora.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index f14abc053..fc9289039 100644
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -417,8 +417,10 @@ function diaspora_post($importer,$xml) {
dbesc($message_id),
dbesc($guid)
);
- if(count($r))
+ if(count($r)) {
+ logger('diaspora_post: message exists: ' . $guid);
return;
+ }
// allocate a guid on our system - we aren't fixing any collisions.
// we're ignoring them
@@ -475,8 +477,10 @@ function diaspora_comment($importer,$xml,$msg) {
$text = $xml->text;
$contact = diaspora_get_contact_by_handle($importer['uid'],$msg['author']);
- if(! $contact)
+ if(! $contact) {
+ logger('diaspora_comment: cannot find contact: ' . $msg['author']);
return;
+ }
if(($contact['rel'] == CONTACT_IS_FOLLOWER) || ($contact['blocked']) || ($contact['readonly'])) {
logger('diaspora_comment: Ignoring this author.');
@@ -489,7 +493,7 @@ function diaspora_comment($importer,$xml,$msg) {
dbesc($guid)
);
if(count($r)) {
- logger('daspora_comment: our comment just got relayed back to us (or there was a guid collision) : ' . $guid);
+ logger('diaspora_comment: our comment just got relayed back to us (or there was a guid collision) : ' . $guid);
return;
}
@@ -658,8 +662,10 @@ function diaspora_like($importer,$xml,$msg) {
return;
$contact = diaspora_get_contact_by_handle($importer['uid'],$msg['author']);
- if(! $contact)
+ if(! $contact) {
+ logger('diaspora_like: cannot find contact: ' . $msg['author']);
return;
+ }
if(($contact['rel'] == CONTACT_IS_FOLLOWER) || ($contact['blocked']) || ($contact['readonly'])) {
logger('diaspora_like: Ignoring this author.');