mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 23:34:27 +02:00
Use alias for profile link in reshare
This commit is contained in:
parent
f49172e9c0
commit
3af5caa950
2 changed files with 25 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue