Grammar change in the license declaration.
[citadel.git] / webcit-ng / static / js / user_profile.js
index 0d9eca43275f5e3227d8357599fa2dc16db5dbc0..52e2be2a8daa720023c823d45759c781103b9a46 100644 (file)
@@ -1,14 +1,14 @@
-// Copyright (c) 2016-2022 by the citadel.org team
+// Copyright (c) 2016-2023 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, or
-// disclosure are subject to the GNU General Public License v3.
+// disclosure is subject to the GNU General Public License v3.
 
 
 // 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