Skip to content
Snippets Groups Projects
Commit f8ccde54 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

re #16 : change http-param name

parent 109ab9b1
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin ...@@ -83,7 +83,7 @@ class PluginMarket extends StudIPPlugin implements SystemPlugin, HomepagePlugin
if ($follower['security_token']) { if ($follower['security_token']) {
$calculatedHash = hash_hmac("sha1", $payload, $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"; $header[] = "Content-Type: application/json";
......
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
class MarketPluginFollower extends SimpleORMap { 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) { static public function findByUserAndPlugin($user_id, $plugin_id) {
return self::findOneBySQL("user_id = ? AND plugin_id = ?", array($user_id, $plugin_id)); return self::findOneBySQL("user_id = ? AND plugin_id = ?", array($user_id, $plugin_id));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment