diff --git a/app/assets/javascripts/discourse/app/components/glimmer-header/topic/info.gjs b/app/assets/javascripts/discourse/app/components/glimmer-header/topic/info.gjs index 84cf13162da..e733977aecc 100644 --- a/app/assets/javascripts/discourse/app/components/glimmer-header/topic/info.gjs +++ b/app/assets/javascripts/discourse/app/components/glimmer-header/topic/info.gjs @@ -1,5 +1,5 @@ import Component from "@glimmer/component"; -import { fn, hash } from "@ember/helper"; +import { hash } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; import { service } from "@ember/service"; @@ -62,6 +62,10 @@ export default class Info extends Component { return participants.slice(0, this.maxExtraItems); } + get pmHref() { + return this.currentUser.pmPath(this.args.topic); + } + @action jumpToTopPost(e) { e.preventDefault(); @@ -82,7 +86,7 @@ export default class Info extends Component { {{#if this.showPM}} {{icon "envelope" class="private-message-glyph"}}