diff options
author | Evan Prodromou <evan@status.net> | 2010-02-21 23:39:52 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-21 23:39:52 -0500 |
commit | a9599d53c5e33eff2927f02393b9ae6984ba3a6e (patch) | |
tree | 6bac7db9f6a15680a5624de34a287ddf5194af71 | |
parent | e4c4f90c8a303e566fa117fadb0004694b89ccc8 (diff) |
some info code for usersalmon.php
-rw-r--r-- | plugins/OStatus/OStatusPlugin.php | 2 | ||||
-rw-r--r-- | plugins/OStatus/actions/usersalmon.php | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 548c87711..3ac2bb87d 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -205,6 +205,8 @@ class OStatusPlugin extends Plugin if (!empty($oprofile) && !empty($oprofile->salmonuri)) { + common_log(LOG_INFO, "Sending notice '{$notice->uri}' to remote profile '{$oprofile->uri}'."); + // FIXME: this needs to go out in a queue handler $xml = '<?xml version="1.0" encoding="UTF-8" ?>'; diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php index 8368eeccf..c8a16e06f 100644 --- a/plugins/OStatus/actions/usersalmon.php +++ b/plugins/OStatus/actions/usersalmon.php @@ -55,6 +55,8 @@ class UsersalmonAction extends SalmonAction */ function handlePost() { + common_log(LOG_INFO, "Received post of '{$this->act->object->id}' from '{$this->act->actor->id}'"); + switch ($this->act->object->type) { case ActivityObject::ARTICLE: case ActivityObject::BLOGENTRY: @@ -92,6 +94,7 @@ class UsersalmonAction extends SalmonAction if (!empty($existing)) { common_log(LOG_ERR, "Not saving notice '{$existing->uri}'; already exists."); + return; } $this->saveNotice(); |