Merge pull request #10490 from annando/fatal

Fix Uncaught TypeError: Argument 1 passed to Friendica\Model\Item::storeForUserByUriId()
pull/10493/head^2
Hypolite Petovan 2021-07-13 21:01:53 -04:00 zatwierdzone przez GitHub
commit 999a394b4d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -534,7 +534,7 @@ class Notifier
foreach ($contacts as $contact) {
// Direct delivery of local contacts
if ($target_uid = User::getIdForURL($contact['url'])) {
if (!in_array($cmd, [Delivery::RELOCATION, Delivery::SUGGESTION, Delivery::DELETION, Delivery::MAIL]) && $target_uid = User::getIdForURL($contact['url'])) {
Logger::info('Direct delivery', ['uri-id' => $target_item['uri-id'], 'target' => $target_uid]);
$fields = ['protocol' => Conversation::PARCEL_LOCAL_DFRN, 'direction' => Conversation::PUSH];
Item::storeForUserByUriId($target_item['uri-id'], $target_uid, $fields, $target_item['uid']);