mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Replace /json/subscriptions/add usage with /json/users/me/subscription.
This commit is contained in:
@@ -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}])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user