]> git.mxchange.org Git - friendica-addons.git/commitdiff
Changed default value for "getIDForURL"
authorMichael <heluecht@pirati.ca>
Thu, 16 Jul 2020 15:44:32 +0000 (15:44 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Jul 2020 15:44:32 +0000 (15:44 +0000)
discourse/discourse.php
twitter/twitter.php

index f684425a9967d208514fdf706f44b5db26753a19..f42cb04c1a868e00895004d31b93cb11ee1db6f7 100644 (file)
@@ -198,7 +198,7 @@ function discourse_get_user($post, $hostaddr)
        $contact['nurl'] = Strings::normaliseLink($contact['url']);
        $contact['baseurl'] = $hostaddr;
        Logger::info('Contact', $contact);
-       $contact['id'] = Contact::getIdForURL($contact['url'], 0, true, $contact);
+       $contact['id'] = Contact::getIdForURL($contact['url'], 0, false, $contact);
         if (!empty($contact['id'])) {
                $avatar = $contact['photo'];
                unset($contact['photo']);
@@ -268,7 +268,7 @@ function discourse_get_html($message)
        $profile = discourse_get_profile($xpath);
        if (!empty($profile['url'])) {
                Logger::info('Found profile', $profile);
-               $message['item']['author-id'] = Contact::getIdForURL($profile['url'], 0, true, $profile);
+               $message['item']['author-id'] = Contact::getIdForURL($profile['url'], 0, false, $profile);
                $message['item']['author-link'] = $profile['url'];
                $message['item']['author-name'] = $profile['name'];
                $message['item']['author-avatar'] = $profile['photo'];
index 4139bdb93a4bb0c2dff55d5538784eb0f271fada..d374f1c355ad3191fa5ff51f0f4d16557b1c2452 100644 (file)
@@ -1127,7 +1127,7 @@ function twitter_fetch_contact($uid, $data, $create_user)
        if (DBA::isResult($pcontact)) {
                $cid = $pcontact['id'];
        } else {
-               $cid = Contact::getIdForURL($fields['url'], 0, true, $fields);
+               $cid = Contact::getIdForURL($fields['url'], 0, false, $fields);
        }
 
        if (!empty($cid)) {