1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

Update for new post stream

This commit is contained in:
Toby Zerner
2015-05-29 18:23:01 +09:30
parent cb1dfe1726
commit 5b323d7c08

View File

@@ -35,7 +35,7 @@ app.initializers.add('sticky', function() {
function toggleSticky() { function toggleSticky() {
this.save({isSticky: !this.isSticky()}).then(discussion => { this.save({isSticky: !this.isSticky()}).then(discussion => {
if (app.current instanceof DiscussionPage) { if (app.current instanceof DiscussionPage) {
app.current.stream().sync(); app.current.stream.sync();
} }
m.redraw(); m.redraw();
}); });