mirror of
https://github.com/friendica/friendica
synced 2025-05-09 16:24:12 +02:00
Added logging and one more reason for a notice found (#5538)
* Added logging and one more reason for a notice found * And one more
This commit is contained in:
parent
9d0f18c0b3
commit
1afc0ab028
3 changed files with 14 additions and 8 deletions
|
@ -1374,15 +1374,12 @@ class Diaspora
|
|||
$item = Item::selectFirst($fields, $condition);
|
||||
|
||||
if (!DBA::isResult($item)) {
|
||||
if (!isset($contact["url"])) {
|
||||
logger('Missing URL: ' . System::callstack() . ' - ' . json_encode($contact));
|
||||
}
|
||||
$person = self::personByHandle($author);
|
||||
$result = self::storeByGuid($guid, $person["url"], $uid);
|
||||
|
||||
$result = self::storeByGuid($guid, $contact["url"], $uid);
|
||||
|
||||
if (!$result) {
|
||||
$person = self::personByHandle($author);
|
||||
$result = self::storeByGuid($guid, $person["url"], $uid);
|
||||
// We don't have an url for items that arrived at the public dispatcher
|
||||
if (!$result && !empty($contact["url"])) {
|
||||
$result = self::storeByGuid($guid, $contact["url"], $uid);
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue