@@ -22,7 +22,7 @@ var CLOSED = 'closed',
2222Discourse . Composer = Discourse . Model . extend ( {
2323
2424 archetypes : function ( ) {
25- return Discourse . Site . instance ( ) . get ( 'archetypes' ) ;
25+ return Discourse . Site . currentProp ( 'archetypes' ) ;
2626 } . property ( ) ,
2727
2828 creatingTopic : Em . computed . equal ( 'action' , CREATE_TOPIC ) ,
@@ -254,7 +254,7 @@ Discourse.Composer = Discourse.Model.extend({
254254 this . _super ( ) ;
255255 var val = Discourse . KeyValueStore . get ( 'composer.showPreview' ) || 'true' ;
256256 this . set ( 'showPreview' , val === 'true' ) ;
257- this . set ( 'archetypeId' , Discourse . Site . instance ( ) . get ( 'default_archetype' ) ) ;
257+ this . set ( 'archetypeId' , Discourse . Site . currentProp ( 'default_archetype' ) ) ;
258258 } ,
259259
260260 /**
@@ -329,7 +329,7 @@ Discourse.Composer = Discourse.Model.extend({
329329
330330 this . setProperties ( {
331331 categoryName : opts . categoryName || this . get ( 'topic.category.name' ) ,
332- archetypeId : opts . archetypeId || Discourse . Site . instance ( ) . get ( 'default_archetype' ) ,
332+ archetypeId : opts . archetypeId || Discourse . Site . currentProp ( 'default_archetype' ) ,
333333 metaData : opts . metaData ? Em . Object . create ( opts . metaData ) : null ,
334334 reply : opts . reply || this . get ( "reply" ) || ""
335335 } ) ;
@@ -453,7 +453,7 @@ Discourse.Composer = Discourse.Model.extend({
453453 user_id : currentUser . get ( 'id' ) ,
454454 metaData : this . get ( 'metaData' ) ,
455455 archetype : this . get ( 'archetypeId' ) ,
456- post_type : Discourse . Site . instance ( ) . get ( 'post_types.regular' ) ,
456+ post_type : Discourse . Site . currentProp ( 'post_types.regular' ) ,
457457 target_usernames : this . get ( 'targetUsernames' ) ,
458458 actions_summary : Em . A ( ) ,
459459 moderator : currentUser . get ( 'moderator' ) ,
0 commit comments