Bluesky: use did based profile links
This commit is contained in:
parent
83f561ea49
commit
37d324e63b
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue