mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 09:13:11 +08:00
Refactor Visitor model and allow a Location object to be passed to it
This commit is contained in:
@@ -59,4 +59,12 @@ final readonly class TrackingOptions
|
||||
{
|
||||
return $this->disableTrackParam !== null && array_key_exists($this->disableTrackParam, $query);
|
||||
}
|
||||
|
||||
/**
|
||||
* If IP address tracking is disabled, or tracking is disabled all together, then geolocation is not relevant
|
||||
*/
|
||||
public function isGeolocationRelevant(): bool
|
||||
{
|
||||
return ! $this->disableTracking && ! $this->disableIpTracking;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user