Fix failing tests.

This commit is contained in:
Guo Xiang Tan
2016-07-05 12:17:29 +08:00
parent bd46bc62ff
commit 7e076d63ba
2 changed files with 21 additions and 2 deletions
@@ -1,7 +1,6 @@
import { createWidget } from 'discourse/widgets/widget';
import { avatarAtts } from 'discourse/widgets/actions-summary';
import { h } from 'virtual-dom';
import User from 'discourse/models/user';
const LIKE_ACTION = 2;
@@ -308,7 +307,7 @@ export default createWidget('post-menu', {
},
like() {
if (!User.current()) {
if (!this.currentUser) {
return this.sendWidgetAction('showLogin');
}
const attrs = this.attrs;