mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
improve announce update torrent visible
This commit is contained in:
@@ -36,8 +36,10 @@ function dltable($name, $arr, $torrent)
|
||||
"<td class=colhead align=center width=1%>".$lang_viewpeerlist['col_client']."</td></tr>\n";
|
||||
$now = time();
|
||||
$num = 0;
|
||||
$privacyData = \App\Models\User::query()->whereIn('id', array_column($arr, 'userid'))->get(['id', 'privacy'])->keyBy('id');
|
||||
foreach ($arr as $e) {
|
||||
$privacy = get_single_value("users", "privacy","WHERE id=".sqlesc($e['userid']));
|
||||
// $privacy = get_single_value("users", "privacy","WHERE id=".sqlesc($e['userid']));
|
||||
$privacy = $privacyData->get($e['userid'])->privacy ?? '';
|
||||
++$num;
|
||||
|
||||
$highlight = $CURUSER["id"] == $e['userid'] ? " bgcolor=#BBAF9B" : "";
|
||||
|
||||
Reference in New Issue
Block a user