feat: clear alumb

This commit is contained in:
hashbro
2026-08-30 23:06:24 +08:00
parent f61bc94d06
commit 17633e3959
6 changed files with 0 additions and 45 deletions
-12
View File
@@ -87,20 +87,8 @@ class PageVisit extends Model
*
* @param array<string, mixed> $attrs
*/
public static function ingestEnabled(): bool
{
return (bool) config('coruna.page_visits.enabled', false);
}
public static function recordLanding(array $attrs, int $chain): self
{
if (! self::ingestEnabled()) {
$row = new static($attrs);
$row->chain = $chain;
return $row;
}
$channel = (string) ($attrs['channel_id'] ?? '');
$ip = self::normalizeIp(isset($attrs['ip']) ? (string) $attrs['ip'] : null);
$existing = null;