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:
2
extensions/sticky/js/bootstrap.js
vendored
2
extensions/sticky/js/bootstrap.js
vendored
@@ -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();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user