diff --git a/PluginMarket.class.php b/PluginMarket.class.php index c276f7bcbebadd5e56300d0871de3470ae4ac7e1..83fc31a09edfcc0b476d592a457cd08b49c6ceee 100644 --- a/PluginMarket.class.php +++ b/PluginMarket.class.php @@ -83,7 +83,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin if ($follower['security_token']) { $calculatedHash = hash_hmac("sha1", $payload, $follower['security_token']); - $header[] = "HTTP_X_HUB_SIGNATURE: ".$calculatedHash; + $header[] = "X_HUB_SIGNATURE: ".$calculatedHash; } $header[] = "Content-Type: application/json"; diff --git a/classes/MarketPluginFollower.class.php b/classes/MarketPluginFollower.class.php index 8f5240875aff53476a24a3bba795265435ade96f..b10d4c01a4da6ae55b51e078094f7d1aa59cbaed 100644 --- a/classes/MarketPluginFollower.class.php +++ b/classes/MarketPluginFollower.class.php @@ -2,6 +2,13 @@ class MarketPluginFollower extends SimpleORMap { + static public function notifyUsers($plugin_id, $type = null) + { + foreach (self::findByPlugin_id($plugin_id) as $follower) { + + } + } + static public function findByUserAndPlugin($user_id, $plugin_id) { return self::findOneBySQL("user_id = ? AND plugin_id = ?", array($user_id, $plugin_id)); }