fix for the stream not loading; we were creating status_message objects that were simply wrappers around posts. in the lastest codebase, status_messages in js are what we are using for the new post form, so we need to just tell our post collection to stop making status_messages directly
This commit is contained in:
parent
0e4f9ae98d
commit
9008e661d7
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ app.collections.Posts = Backbone.Collection.extend({
|
|||
url : "/posts",
|
||||
|
||||
model: function(attrs, options) {
|
||||
var modelClass = app.models[attrs.post_type] || app.models.Post
|
||||
var modelClass = app.models.Post
|
||||
return new modelClass(attrs, options);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue