mirror of
https://github.com/friendica/friendica
synced 2025-05-11 05:44:10 +02:00
Merge pull request #8883 from annando/replace-getdetails
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
commit
631095eefd
31 changed files with 84 additions and 291 deletions
|
@ -1569,7 +1569,7 @@ class Diaspora
|
|||
*/
|
||||
private static function plink($addr, $guid, $parent_guid = '')
|
||||
{
|
||||
$contact = Contact::getDetailsByAddr($addr);
|
||||
$contact = Contact::getByURL($addr);
|
||||
if (empty($contact)) {
|
||||
Logger::info('No contact data for address', ['addr' => $addr]);
|
||||
return '';
|
||||
|
@ -3730,7 +3730,7 @@ class Diaspora
|
|||
|
||||
private static function prependParentAuthorMention($body, $profile_url)
|
||||
{
|
||||
$profile = Contact::getDetailsByURL($profile_url);
|
||||
$profile = Contact::getByURL($profile_url, false, ['addr', 'name', 'contact-type']);
|
||||
if (!empty($profile['addr'])
|
||||
&& $profile['contact-type'] != Contact::TYPE_COMMUNITY
|
||||
&& !strstr($body, $profile['addr'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue