mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Reworked "getIdForURL"
This commit is contained in:
parent
c89b690156
commit
7b13b7e9c8
8 changed files with 84 additions and 195 deletions
|
@ -219,7 +219,7 @@ class OStatus
|
|||
}
|
||||
|
||||
// Ensure that we are having this contact (with uid=0)
|
||||
$cid = Contact::getIdForURL($aliaslink, 0, false);
|
||||
$cid = Contact::getIdForURL($aliaslink);
|
||||
|
||||
if ($cid) {
|
||||
$fields = ['url', 'nurl', 'name', 'nick', 'alias', 'about', 'location'];
|
||||
|
@ -2122,7 +2122,7 @@ class OStatus
|
|||
}
|
||||
|
||||
$check_date = DateTimeFormat::utc($last_update);
|
||||
$authorid = Contact::getIdForURL($owner["url"], 0, false);
|
||||
$authorid = Contact::getIdForURL($owner["url"]);
|
||||
|
||||
$condition = ["`uid` = ? AND `received` > ? AND NOT `deleted`
|
||||
AND `private` != ? AND `visible` AND `wall` AND `parent-network` IN (?, ?)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue