mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02:00
Fix new post injected above unread sticky (#1868)
Refresh the discussion list instead of prepending the new post
This commit is contained in:
@@ -92,7 +92,7 @@ export default class DiscussionComposer extends ComposerBody {
|
|||||||
app.store.createRecord('discussions').save(data).then(
|
app.store.createRecord('discussions').save(data).then(
|
||||||
discussion => {
|
discussion => {
|
||||||
app.composer.hide();
|
app.composer.hide();
|
||||||
app.cache.discussionList.addDiscussion(discussion);
|
app.cache.discussionList.refresh();
|
||||||
m.route(app.route.discussion(discussion));
|
m.route(app.route.discussion(discussion));
|
||||||
},
|
},
|
||||||
this.loaded.bind(this)
|
this.loaded.bind(this)
|
||||||
|
Reference in New Issue
Block a user