mirror of
https://github.com/flarum/core.git
synced 2025-07-16 06:16:23 +02:00
@ -16,8 +16,8 @@ export default function addLockControl() {
|
||||
|
||||
DiscussionControls.lockAction = function() {
|
||||
this.save({isLocked: !this.isLocked()}).then(() => {
|
||||
if (app.current instanceof DiscussionPage) {
|
||||
app.current.stream.update();
|
||||
if (app.current.matches(DiscussionPage)) {
|
||||
app.current.get('stream').update();
|
||||
}
|
||||
|
||||
m.redraw();
|
||||
|
Reference in New Issue
Block a user