diff options
| author | winter | 2025-01-26 17:23:11 +0000 |
|---|---|---|
| committer | winter | 2025-01-26 17:23:11 +0000 |
| commit | df5ead7bd4adac405811b91fed1e5f0b3775206b (patch) | |
| tree | 20402ccab2fba3af35a83bd034f13876aabd4f5b /Digitigrade/Model | |
| parent | e8106abb8006f5e60e1f2d42621c64ae3d78e372 (diff) | |
add link preview metadata
Diffstat (limited to 'Digitigrade/Model')
| -rw-r--r-- | Digitigrade/Model/Actor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php index f2eecae..62d1b39 100644 --- a/Digitigrade/Model/Actor.php +++ b/Digitigrade/Model/Actor.php @@ -286,8 +286,8 @@ class Actor extends PushableModel implements RpcReceiver { return $instances; } - public function getFullHandle(): string { - return $this->handle . ($this->isLocal ? '' : '@' . hostname_from_uri($this->uri)); + public function getFullHandle(bool $alwaysIncludeDomain = false): string { + return $this->handle . (($alwaysIncludeDomain || !$this->isLocal) ? '@' . hostname_from_uri($this->uri) : ''); } public function jsonSerialize(): array { |
