FEATURE: send user-card:show event (#13910)

FEATURE: send user-card:show event (#13910)

Send user-card:show event when card is opened. Other parts may listen, for example, for analytic purpose.

diff --git a/app/assets/javascripts/discourse/app/mixins/card-contents-base.js b/app/assets/javascripts/discourse/app/mixins/card-contents-base.js
index 1eafd02..486c5eb 100644
--- a/app/assets/javascripts/discourse/app/mixins/card-contents-base.js
+++ b/app/assets/javascripts/discourse/app/mixins/card-contents-base.js
@@ -74,6 +74,7 @@ export default Mixin.create({
       post,
     });
 
+    this.appEvents.trigger("user-card:show", { username });
     this._showCallback(username, $(target));
 
     // We bind scrolling on mobile after cards are shown to hide them if user scrolls

GitHub sha: 70639337555004f9eae77164d09a42ce0009415e

This commit appears in #13910 which was approved by ZogStriP. It was merged by SamSaffron.