Merge remote-tracking branch 'upstream/develop' into api
This commit is contained in:
commit
b4e4378568
2 changed files with 3 additions and 3 deletions
|
@ -2211,10 +2211,10 @@ class Contact
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((!empty($ret['addr']) && ($ret['addr'] != $contact['addr'])) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) {
|
if ((!empty($ret['addr']) && ($ret['addr'] != $contact['addr'])) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) {
|
||||||
$ret['uri-date'] = DateTimeFormat::utcNow();
|
$ret['uri-date'] = $updated;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($ret['name'] != $contact['name']) || ($ret['nick'] != $contact['nick'])) {
|
if ((!empty($ret['name']) && ($ret['name'] != $contact['name'])) || (!empty($ret['nick']) && ($ret['nick'] != $contact['nick']))) {
|
||||||
$ret['name-date'] = $updated;
|
$ret['name-date'] = $updated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -534,7 +534,7 @@ class Notifier
|
||||||
|
|
||||||
foreach ($contacts as $contact) {
|
foreach ($contacts as $contact) {
|
||||||
// Direct delivery of local contacts
|
// 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]);
|
Logger::info('Direct delivery', ['uri-id' => $target_item['uri-id'], 'target' => $target_uid]);
|
||||||
$fields = ['protocol' => Conversation::PARCEL_LOCAL_DFRN, 'direction' => Conversation::PUSH];
|
$fields = ['protocol' => Conversation::PARCEL_LOCAL_DFRN, 'direction' => Conversation::PUSH];
|
||||||
Item::storeForUserByUriId($target_item['uri-id'], $target_uid, $fields, $target_item['uid']);
|
Item::storeForUserByUriId($target_item['uri-id'], $target_uid, $fields, $target_item['uid']);
|
||||||
|
|
Loading…
Reference in a new issue