From 76e6a7182200df85b9b8ca6ef86f010fa03d7b98 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 26 May 2021 14:29:50 +0000 Subject: [PATCH] Setting the post reason --- src/Worker/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index b53fba05f1..de2774594d 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -782,7 +782,7 @@ class Notifier if ((count($receivers) == 1) && Network::isLocalLink($inbox)) { $contact = Contact::getById($receivers[0], ['url']); if ($target_uid = User::getIdForURL($contact['url'])) { - $fields = ['protocol' => Conversation::PARCEL_LOCAL_DFRN, 'direction' => Conversation::PUSH]; + $fields = ['protocol' => Conversation::PARCEL_LOCAL_DFRN, 'direction' => Conversation::PUSH, 'post-reason' => Item::PR_BCC]; Item::storeForUserByUriId($target_item['uri-id'], $target_uid, $fields, $target_item['uid']); Logger::info('Delivered locally', ['cmd' => $cmd, 'id' => $target_item['id'], 'inbox' => $inbox]); continue;