From df5ead7bd4adac405811b91fed1e5f0b3775206b Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 26 Jan 2025 17:23:11 +0000 Subject: add link preview metadata --- Digitigrade/Model/Actor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Digitigrade') 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 { -- cgit v1.3