Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
修复回复时 @ 用户链接错误
Browse files Browse the repository at this point in the history
  • Loading branch information
langningc2009 committed Aug 13, 2023
1 parent ababcc3 commit 1fa46db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Server/BBS-Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function NewReply(int $PostID, string $Content): int
$Content = preg_replace_callback("/@([a-zA-Z0-9]+)/", function ($Matches) use (&$MentionPeople) {
if (IfUserExist($Matches[1])) {
$MentionPeople[] = $Matches[1];
return " <a class=\"link-info\" href=\"http://http://www.xmoj.tech/userinfo.php?user=" . $Matches[1] . "\">@" . $Matches[1] . "</a> ";
return " <a class=\"link-info\" href=\"http://www.xmoj.tech/userinfo.php?user=" . $Matches[1] . "\">@" . $Matches[1] . "</a> ";
} else {
return "@" . $Matches[1];
}
Expand Down
2 changes: 1 addition & 1 deletion Server/BBS.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function NewReply(int $PostID, string $Content): int
$Content = preg_replace_callback("/@([a-zA-Z0-9]+)/", function ($Matches) use (&$MentionPeople) {
if (IfUserExist($Matches[1])) {
$MentionPeople[] = $Matches[1];
return " <a class=\"link-info\" href=\"http://http://www.xmoj.tech/userinfo.php?user=" . $Matches[1] . "\">@" . $Matches[1] . "</a> ";
return " <a class=\"link-info\" href=\"http://www.xmoj.tech/userinfo.php?user=" . $Matches[1] . "\">@" . $Matches[1] . "</a> ";
} else {
return "@" . $Matches[1];
}
Expand Down

0 comments on commit 1fa46db

Please sign in to comment.