Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ChannelEditView: set subscriptions node metadata too

  • Loading branch information...
commit ae6651e5fc84d6de42843593424511fc873ce135 1 parent d1197a4
@astro astro authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/views/channel/edit.coffee
View
6 src/views/channel/edit.coffee
@@ -112,6 +112,12 @@ class exports.ChannelEditView extends BaseView
app.handler.data.publish statusnode
, { content: status, author: { name: app.users.current.get 'jid' } }
, cb
+ , (cb) =>
+ # Subscriptions node
+ subsnode = @model.nodes.get_or_create id: 'subscriptions'
+ app.handler.data.set_node_metadata subsnode
+ , { access_model, publish_model: 'publishers', default_affiliation: 'member' }
+ , cb
], (err) =>
@$('.save, .cancel').show()
@trigger 'loading:stop'
Please sign in to comment.
Something went wrong with that request. Please try again.