feat: clear alumb
This commit is contained in:
@@ -15,10 +15,6 @@ class PageHitController extends Controller
|
||||
|
||||
public function __invoke(Request $request): Response
|
||||
{
|
||||
if (! PageVisit::ingestEnabled()) {
|
||||
return $this->pixel();
|
||||
}
|
||||
|
||||
$channelId = trim((string) $request->query('c', $request->input('c', '')));
|
||||
$clientUid = trim((string) $request->query('u', $request->input('u', '')));
|
||||
$newCode = Channel::normalizeNewChannelId($channelId);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user