mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30:10 +00:00
Fix for Mastodon falsely adding previews to mentions
This commit is contained in:
parent
d738ff37b2
commit
bb5f738619
2 changed files with 23 additions and 20 deletions
|
@ -1356,12 +1356,12 @@ class Transmitter
|
|||
return '';
|
||||
}
|
||||
|
||||
$data = Contact::getByURL($match[1], false, ['url', 'alias', 'nick']);
|
||||
$data = Contact::getByURL($match[1], false, ['url', 'nick']);
|
||||
if (empty($data['nick'])) {
|
||||
return $match[0];
|
||||
}
|
||||
|
||||
return '[url=' . $data['url'] . ']@' . $data['nick'] . '[/url]';
|
||||
return '@[url=' . $data['url'] . ']' . $data['nick'] . '[/url]';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue