mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:50:12 +00:00
Reworked "getIdForURL"
This commit is contained in:
parent
c89b690156
commit
7b13b7e9c8
8 changed files with 84 additions and 195 deletions
|
@ -3064,7 +3064,7 @@ class Item
|
|||
if (local_user() == $uid) {
|
||||
$item_contact_id = $owner_self_contact['id'];
|
||||
} else {
|
||||
$item_contact_id = Contact::getIdForURL($author_contact['url'], $uid, false);
|
||||
$item_contact_id = Contact::getIdForURL($author_contact['url'], $uid);
|
||||
$item_contact = DBA::selectFirst('contact', [], ['id' => $item_contact_id]);
|
||||
if (!DBA::isResult($item_contact)) {
|
||||
Logger::log('like: unknown item contact ' . $item_contact_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue