summaryrefslogtreecommitdiff
path: root/plugins/OStatus/actions/usersalmon.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 23:39:52 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 23:39:52 -0500
commita9599d53c5e33eff2927f02393b9ae6984ba3a6e (patch)
tree6bac7db9f6a15680a5624de34a287ddf5194af71 /plugins/OStatus/actions/usersalmon.php
parente4c4f90c8a303e566fa117fadb0004694b89ccc8 (diff)
some info code for usersalmon.php
Diffstat (limited to 'plugins/OStatus/actions/usersalmon.php')
-rw-r--r--plugins/OStatus/actions/usersalmon.php3
1 files changed, 3 insertions, 0 deletions
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();