mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix topic user deleted display
This commit is contained in:
@@ -633,7 +633,6 @@ if ($action == "viewtopic")
|
||||
unset($arr);
|
||||
$neededColumns = array('id', 'noad', 'class', 'enabled', 'privacy', 'avatar', 'signature', 'uploaded', 'downloaded', 'last_access', 'username', 'donor', 'leechwarn', 'warned', 'title');
|
||||
$userInfoArr = \App\Models\User::query()->with(['valid_medals'])->find($uidArr, $neededColumns)->keyBy('id');
|
||||
|
||||
$pn = 0;
|
||||
$lpr = get_last_read_post_id($topicid);
|
||||
|
||||
@@ -658,7 +657,8 @@ if ($action == "viewtopic")
|
||||
//---- Get poster details
|
||||
|
||||
// $arr2 = get_user_row($posterid);
|
||||
$userInfo = $userInfoArr->get($posterid);
|
||||
$userInfo = $userInfoArr->get($posterid) ?: \App\Models\User::defaultUser();
|
||||
|
||||
$arr2 = $userInfo->toArray();
|
||||
|
||||
$uploaded = mksize($arr2["uploaded"]);
|
||||
|
||||
@@ -157,7 +157,7 @@ elseif ($inclbookmarked == 2) //not bookmarked
|
||||
// ----------------- end bookmarked ---------------------//
|
||||
|
||||
if (!isset($CURUSER) || get_user_class() < $seebanned_class)
|
||||
$wherea[] = "banned != 'yes'";
|
||||
$wherea[] = "banned = 'no'";
|
||||
// ----------------- start include dead ---------------------//
|
||||
if (isset($_GET["incldead"]))
|
||||
$include_dead = intval($_GET["incldead"] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user