]> git.mxchange.org Git - friendica.git/commitdiff
Setting the post reason
authorMichael <heluecht@pirati.ca>
Wed, 26 May 2021 14:29:50 +0000 (14:29 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 26 May 2021 14:29:50 +0000 (14:29 +0000)
src/Worker/Notifier.php

index b53fba05f1783dbb707946fa3a78a60a7dc0d0cb..de2774594d7972ee9f5b8c124d9667ea795d525e 100644 (file)
@@ -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;