searchbox add size+seeders+leechers+times_completed+added

This commit is contained in:
xiaomlove
2022-12-20 22:24:31 +08:00
parent ed67b127d4
commit 63321cb20f
15 changed files with 133 additions and 34 deletions

View File

@@ -567,10 +567,7 @@ class User extends Authenticatable implements FilamentUser, HasName
public function acceptNotification($name): bool
{
if (!isset($this->original['notifs'])) {
throw new \RuntimeException("Not fetch field: notifs");
}
return str_contains($this->notifs, "[{$name}]");
return is_null($this->original['notifs']) || str_contains($this->notifs, "[{$name}]");
}