Replace /json/subscriptions/add usage with /json/users/me/subscription.

This commit is contained in:
Allie Jones
2015-11-30 15:39:40 -05:00
committed by Tim Abbott
parent 023f45190f
commit 29a4b51e52
4 changed files with 13 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ var exports = {};
function add_sub(stream_name, $status_message) {
channel.post({
url: '/json/subscriptions/add',
url: '/users/me/subscriptions',
data: {
subscriptions: JSON.stringify([{'name': stream_name}])
}