Use alias for profile link in reshare

This commit is contained in:
Michael 2025-04-18 04:22:56 +00:00
parent f49172e9c0
commit 3af5caa950
2 changed files with 25 additions and 10 deletions

View file

@ -506,13 +506,10 @@ class Processor
break;
case 'app.bsky.richtext.facet#mention':
$contact = Contact::getByURL($feature->did, null, ['id']);
if (!empty($contact['id'])) {
$url = $this->baseURL . '/contact/' . $contact['id'];
if (substr($linktext, 0, 1) == '@') {
$prefix .= '@';
$linktext = substr($linktext, 1);
}
$url = $feature->did;
if (substr($linktext, 0, 1) == '@') {
$prefix .= '@';
$linktext = substr($linktext, 1);
}
break;