]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some info code for usersalmon.php
authorEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:39:52 +0000 (23:39 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 22 Feb 2010 04:39:52 +0000 (23:39 -0500)
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/actions/usersalmon.php

index 548c8771185d55156883e45678723aa99b2e7a7b..3ac2bb87d74be44beeeeebf7e4cc4bdf467df6ae 100644 (file)
@@ -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" ?>';
index 8368eeccf0b59a23e573e0e0734071808a022b17..c8a16e06fa07392d33bc304fda20f6cdca1ad218 100644 (file)
@@ -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();