mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 21:55:40 +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) {
|
if (attrs.topicOwner) {
|
||||||
classNames.push("topic-owner");
|
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");
|
classNames.push("current-user-post");
|
||||||
}
|
}
|
||||||
if (attrs.groupModerator) {
|
if (attrs.groupModerator) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user