]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
Add no_update flag to speed up Contact::getIdForURL instances
[friendica.git] / src / Protocol / OStatus.php
index a3fdacf33145ca6b0a5c4df02f42ae1e67d6fe6c..c6f840a66e0b60150f9d57b0574e26df51b88527 100644 (file)
@@ -186,7 +186,7 @@ class OStatus
                        }
 
                        // Ensure that we are having this contact (with uid=0)
-                       $cid = Contact::getIdForURL($aliaslink, 0);
+                       $cid = Contact::getIdForURL($aliaslink, 0, true);
 
                        if ($cid) {
                                $fields = ['url', 'nurl', 'name', 'nick', 'alias', 'about', 'location'];
@@ -2108,7 +2108,7 @@ class OStatus
                }
 
                $check_date = DateTimeFormat::utc($last_update);
-               $authorid = Contact::getIdForURL($owner["url"], 0);
+               $authorid = Contact::getIdForURL($owner["url"], 0, true);
 
                $sql_extra = '';
                if ($filter === 'posts') {