mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 10:32:44 +08:00
need to check if currentUser exists (#13814)
This commit is contained in:
parent
da81cfe317
commit
5ebae8a64d
|
@ -755,7 +755,7 @@ export default createWidget("post", {
|
|||
if (attrs.topicOwner) {
|
||||
classNames.push("topic-owner");
|
||||
}
|
||||
if (attrs.user_id === this.currentUser.id) {
|
||||
if (this.currentUser && attrs.user_id === this.currentUser.id) {
|
||||
classNames.push("current-user-post");
|
||||
}
|
||||
if (attrs.groupModerator) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user