Fix for Mastodon falsely adding previews to mentions
This commit is contained in:
@@ -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]';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user