mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Merge pull request #6726 from MrPetovan/task/6676-fix-implicit-mentions
Fix last batch of implicit mentions issues
This commit is contained in:
commit
fa5525d084
20 changed files with 547 additions and 264 deletions
|
@ -2189,7 +2189,7 @@ class Contact extends BaseObject
|
|||
{
|
||||
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'uid'], ['id' => $cid]);
|
||||
|
||||
return self::magicLinkbyContact($contact, $url);
|
||||
return self::magicLinkByContact($contact, $url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2202,7 +2202,7 @@ class Contact extends BaseObject
|
|||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function magicLinkbyContact($contact, $url = '')
|
||||
public static function magicLinkByContact($contact, $url = '')
|
||||
{
|
||||
if ((!local_user() && !remote_user()) || ($contact['network'] != Protocol::DFRN)) {
|
||||
return $url ?: $contact['url']; // Equivalent to ($url != '') ? $url : $contact['url'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue