mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
fake users get no demos
This commit is contained in:
parent
05706f2233
commit
495a64e389
1 changed files with 8 additions and 0 deletions
|
|
@ -178,6 +178,14 @@ impl ListDemo {
|
|||
.fetch_all(connection)
|
||||
.await?)
|
||||
} else {
|
||||
let is_fake_user = filter
|
||||
.players
|
||||
.iter()
|
||||
.any(|player| matches!(player, SteamId::Raw(_)));
|
||||
if is_fake_user {
|
||||
return Ok(Vec::new());
|
||||
}
|
||||
|
||||
let mut query = Query::select();
|
||||
query
|
||||
.columns([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue