mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: 'currentUser' is a property of the 'widget'
This commit is contained in:
@@ -19,8 +19,8 @@ export default class PostCooked {
|
||||
|
||||
if (decoratorHelper) {
|
||||
this.decoratorHelper = decoratorHelper;
|
||||
if (decoratorHelper.widget && decoratorHelper.currentUser) {
|
||||
this.currentUser = decoratorHelper.currentUser;
|
||||
if (decoratorHelper.widget && decoratorHelper.widget.currentUser) {
|
||||
this.currentUser = decoratorHelper.widget.currentUser;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user