create a dummy-participation object, that the post appeas followed by self

This commit is contained in:
Florian Staudacher 2012-04-01 22:34:54 +02:00
parent a5a6378eb0
commit ef292c40eb

View file

@ -39,6 +39,7 @@ app.views.Publisher = Backbone.View.extend({
$(app.publisher.el).trigger('ajax:success');
}
if(app.stream) {
statusMessage.set({"user_participation": new app.models.Participation});
app.stream.posts.add(statusMessage.toJSON());
}
}