Merge pull request #3092 from Raven24/self-follow

create a dummy-participation js object, for the post to appear as followed by self
This commit is contained in:
Daniel Grippi 2012-04-01 18:22:17 -07:00
commit 2646352cb1

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());
}
}