]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/user_profile.js
Include email address in mail display for local users because otherwise it breaks...
[citadel.git] / webcit-ng / static / js / user_profile.js
index 0d9eca43275f5e3227d8357599fa2dc16db5dbc0..19f19f432d98edd529e54457aa64ac60dd5a50e4 100644 (file)
@@ -7,8 +7,8 @@
 // Inline display the author of a message.  This can be called from many different views.
 // For messages originating locally, it renders the display name linked to their profile.
 // For messages originating locally, it renders the display name and their email address.
-function render_msg_author(msg) {
-       if (msg.locl) {
+function render_msg_author(msg, view) {
+       if ((msg.locl) && (view == views.VIEW_BBS)) {
                return(
                        "<span class=\"ctdl-username\" onClick=\"javascript:user_profile('" + msg.from + "');\">"
                        + msg.from