]> git.mxchange.org Git - friendica.git/commitdiff
Bluesky: use did based profile links
authorMichael <heluecht@pirati.ca>
Wed, 16 Apr 2025 04:13:09 +0000 (04:13 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 16 Apr 2025 04:13:09 +0000 (04:13 +0000)
src/Network/Probe.php
src/Protocol/ATProtocol/Actor.php
src/Protocol/ATProtocol/Processor.php

index a7e7b8275c042e384c2931add625c2bf7e5a0c3e..471f6e313ab0e81f017d09f06401756bb88988f2 100644 (file)
@@ -1729,7 +1729,7 @@ class Probe
                $data = [
                        'network' => Protocol::BLUESKY,
                        'url'     => $profile->did,
-                       'alias'   => ATProtocol::WEB . '/profile/' . $nick,
+                       'alias'   => ATProtocol::WEB . '/profile/' . $profile->did,
                        'name'    => $name ?: $nick,
                        'nick'    => $nick,
                        'addr'    => $nick,
index 862d10eeeaf519d9e423449839cb838a4f823bde..db310813b31d94419def646756dce21977b6c7a2 100755 (executable)
@@ -117,7 +117,7 @@ class Actor
                $name = $profile->displayName ?? $nick;
 
                $fields = [
-                       'alias'   => ATProtocol::WEB . '/profile/' . $nick,
+                       'alias'   => ATProtocol::WEB . '/profile/' . $profile->did,
                        'name'    => $name ?: $nick,
                        'nick'    => $nick,
                        'addr'    => $nick,
index 502b31ea4a78f28c73f1c86c5c5823ced31d522b..d7a26f78cf5176420b44a926787a0bb2e71e4eee 100755 (executable)
@@ -72,7 +72,7 @@ class Processor
        public function processIdentity(stdClass $data)
        {
                $fields = [
-                       'alias'   => ATProtocol::WEB . '/profile/' . $data->identity->handle,
+                       'alias'   => ATProtocol::WEB . '/profile/' . $data->identity->did,
                        'nick'    => $data->identity->handle,
                        'addr'    => $data->identity->handle,
                        'updated' => DateTimeFormat::utc($data->identity->time, DateTimeFormat::MYSQL),