Merge pull request #8883 from annando/replace-getdetails

Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
Hypolite Petovan 2020-07-15 13:49:27 -04:00 committed by GitHub
commit 631095eefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 84 additions and 291 deletions

View file

@ -2106,7 +2106,7 @@ class OStatus
$mentioned = $newmentions;
foreach ($mentioned as $mention) {
$contact = Contact::getByURL($mention, 0, ['contact-type']);
$contact = Contact::getByURL($mention, ['contact-type']);
if (!empty($contact) && ($contact['contact-type'] == Contact::TYPE_COMMUNITY)) {
XML::addElement($doc, $entry, "link", "",
[