]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/salmonqueuehandler.php
Implemented WebFinger and replaced our XRD with PEAR XML_XRD
[quix0rs-gnu-social.git] / plugins / OStatus / lib / salmonqueuehandler.php
index 56d3c9eff2e21a702e45787d30300da27292baa7..3b98a34a87c09c82e520da012670092191aed053 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Send a Salmon notification in the background.
  * @package OStatusPlugin
@@ -35,7 +39,7 @@ class SalmonQueueHandler extends QueueHandler
         assert(is_string($data['salmonuri']));
         assert(is_string($data['entry']));
 
-        $actor = Profile::staticGet($data['actor']);
+        $actor = Profile::getKV($data['actor']);
 
         $salmon = new Salmon();
         $salmon->post($data['salmonuri'], $data['entry'], $actor);