--- fenglin/bbs/article_service_post.php 2025/06/03 03:04:16 1.7 +++ fenglin/bbs/article_service_post.php 2025/10/31 06:22:33 1.11 @@ -126,7 +126,7 @@ } // Calculate length of content - $length = str_length(LML($content, false, false, 1024)); + $length = str_length($content, true); // Initial variables $tid = 0; @@ -637,8 +637,8 @@ exit(json_encode($result_set)); } - //Notify the authors of the topic which is replyed. - $sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR TID = $tid) + //Notify the authors of the topic / article which is replyed. + $sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR AID = $reply_id) AND visible AND reply_note AND UID <> " . $_SESSION["BBS_uid"]; $rs = mysqli_query($db_conn, $sql); @@ -654,7 +654,7 @@ while ($row = mysqli_fetch_array($rs)) { //Send notification message - $msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的主题文章,快来". + $msg_content = "有人回复了您所发表/回复的文章,快来". "[article $aid]看看[/article]《" . $r_title . "》吧!\n"; $sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip)