1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

Merge branch 'master' into next-back

This commit is contained in:
Toby Zerner
2017-12-26 20:23:13 +10:30

View File

@@ -78,10 +78,17 @@ class PushNewPosts
*/
protected function getPusher()
{
$options = [];
if ($cluster = $this->settings->get('flarum-pusher.app_cluster')) {
$options['cluster'] = $cluster;
}
return new Pusher(
$this->settings->get('flarum-pusher.app_key'),
$this->settings->get('flarum-pusher.app_secret'),
$this->settings->get('flarum-pusher.app_id')
$this->settings->get('flarum-pusher.app_id'),
$options
);
}
}