From ae15b10cf8c991ec0745a4d843ad243eafc9a4e5 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 9 May 2017 15:37:36 -0400 Subject: [PATCH] FIX: The keyboard shortcut to bookmark the first post wasn't refreshing --- app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 index 8a598edbca9..816767473f8 100644 --- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 +++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 @@ -92,7 +92,7 @@ export default { const topic = this.currentTopic(); // BIG hack, need a cleaner way if (topic && $('.posts-wrapper').length > 0) { - topic.toggleBookmark(); + this.container.lookup('controller:topic').send('toggleBookmark'); } else { this.sendToTopicListItemView('toggleBookmark'); }