Merge pull request #14885 from annando/bluesky-profile-links
Bluesky: use did based profile links
This commit is contained in:
commit
cd3d412a59
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue