Merge pull request #14885 from annando/bluesky-profile-links

Bluesky: use did based profile links
This commit is contained in:
Hypolite Petovan 2025-04-17 00:00:01 -04:00 committed by GitHub
commit cd3d412a59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -1729,7 +1729,7 @@ class Probe
$data = [ $data = [
'network' => Protocol::BLUESKY, 'network' => Protocol::BLUESKY,
'url' => $profile->did, 'url' => $profile->did,
'alias' => ATProtocol::WEB . '/profile/' . $nick, 'alias' => ATProtocol::WEB . '/profile/' . $profile->did,
'name' => $name ?: $nick, 'name' => $name ?: $nick,
'nick' => $nick, 'nick' => $nick,
'addr' => $nick, 'addr' => $nick,

View file

@ -117,7 +117,7 @@ class Actor
$name = $profile->displayName ?? $nick; $name = $profile->displayName ?? $nick;
$fields = [ $fields = [
'alias' => ATProtocol::WEB . '/profile/' . $nick, 'alias' => ATProtocol::WEB . '/profile/' . $profile->did,
'name' => $name ?: $nick, 'name' => $name ?: $nick,
'nick' => $nick, 'nick' => $nick,
'addr' => $nick, 'addr' => $nick,

View file

@ -72,7 +72,7 @@ class Processor
public function processIdentity(stdClass $data) public function processIdentity(stdClass $data)
{ {
$fields = [ $fields = [
'alias' => ATProtocol::WEB . '/profile/' . $data->identity->handle, 'alias' => ATProtocol::WEB . '/profile/' . $data->identity->did,
'nick' => $data->identity->handle, 'nick' => $data->identity->handle,
'addr' => $data->identity->handle, 'addr' => $data->identity->handle,
'updated' => DateTimeFormat::utc($data->identity->time, DateTimeFormat::MYSQL), 'updated' => DateTimeFormat::utc($data->identity->time, DateTimeFormat::MYSQL),