]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/salmonqueuehandler.php
IMPORTANT - fixed HubSub to properly fetch primary keys
[quix0rs-gnu-social.git] / plugins / OStatus / lib / salmonqueuehandler.php
index 7eeb5f8e9c1f54988e19d5dcc5c566b2fddc7264..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,8 +39,8 @@ 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);