mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Use the name as name
This commit is contained in:
parent
3ff607deee
commit
472518f0b5
2 changed files with 7 additions and 1 deletions
|
@ -600,6 +600,12 @@ class Processor
|
|||
$fields['type'] = Term::IMPLICIT_MENTION;
|
||||
$fields['name'] = substr($fields['name'], 1);
|
||||
}
|
||||
if (!empty($tag['href'])) {
|
||||
$apcontact = APContact::getByURL($tag['href']);
|
||||
if (!empty($apcontact['name'])) {
|
||||
$fields['name'] = $apcontact['name'];
|
||||
}
|
||||
}
|
||||
} elseif ($tag['type'] == 'Hashtag') {
|
||||
$fields['type'] = Term::HASHTAG;
|
||||
if (substr($fields['name'], 0, 1) == Term::TAG_CHARACTER[Term::HASHTAG]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue