diff options
| author | winter | 2024-12-23 22:17:41 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 22:17:41 +0000 |
| commit | 916d4521cb595493bc5df8b7f9ef52310b6d013a (patch) | |
| tree | d12b54f32339c2e6ae0bafc12bd4c30262615a5d /Digitigrade/Model/Actor.php | |
| parent | 8f1f84d92cabf3a606585bc79eba14e63c149b60 (diff) | |
actor profile page
Diffstat (limited to 'Digitigrade/Model/Actor.php')
| -rw-r--r-- | Digitigrade/Model/Actor.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php index 8059409..d3589ae 100644 --- a/Digitigrade/Model/Actor.php +++ b/Digitigrade/Model/Actor.php @@ -204,6 +204,10 @@ class Actor extends PushableModel implements RpcReceiver { return $instances; } + public function getFullHandle(): string { + return $this->handle . ($this->isLocal ? '' : '@' . hostname_from_uri($this->uri)); + } + public function jsonSerialize(): array { if ($this->deleted) { return [ |
