mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Expose visitedUrl when serializing any kind of visit, not only orphan visits
This commit is contained in:
@@ -163,6 +163,7 @@ class Visit extends AbstractEntity implements JsonSerializable
|
||||
'userAgent' => $this->userAgent,
|
||||
'visitLocation' => $this->visitLocation,
|
||||
'potentialBot' => $this->potentialBot,
|
||||
'visitedUrl' => $this->visitedUrl,
|
||||
];
|
||||
if (! $this->isOrphan()) {
|
||||
return $base;
|
||||
@@ -170,7 +171,6 @@ class Visit extends AbstractEntity implements JsonSerializable
|
||||
|
||||
return [
|
||||
...$base,
|
||||
'visitedUrl' => $this->visitedUrl,
|
||||
'type' => $this->type->value,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user