Skip to content

Commit 16282e9

Browse files
author
Emmanouil Konstantinidis
committed
Parameter for notifications requests
1 parent fdd1565 commit 16282e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/js/stores/notifications.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var _ = require('underscore');
44
var Reflux = require('reflux');
55
var Actions = require('../actions/actions');
66
var apiRequests = require('../utils/api-requests');
7+
var SettingsStore = require('../stores/settings');
78

89
var NotificationsStore = Reflux.createStore({
910
listenables: Actions,
@@ -22,9 +23,10 @@ var NotificationsStore = Reflux.createStore({
2223

2324
onGetNotifications: function () {
2425
var self = this;
26+
var participating = SettingsStore.getSettings().participating;
2527

2628
apiRequests
27-
.getAuth('https://api.github.com/notifications')
29+
.getAuth('https://api.github.com/notifications?participating=' + participating)
2830
.end(function (err, response) {
2931
if (response && response.ok) {
3032
// Success - Do Something.

0 commit comments

Comments
 (0)