]> git.mxchange.org Git - friendica.git/commitdiff
Fix notices
authorMichael <heluecht@pirati.ca>
Thu, 17 Dec 2020 18:08:07 +0000 (18:08 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 17 Dec 2020 18:08:07 +0000 (18:08 +0000)
src/Protocol/ActivityPub/Processor.php
src/Worker/DelayedPublish.php

index f60eea7122211d3aeafa67bbfe50a25bda82e9c0..739514a60325aa5dfee032131444d3927c79fef2 100644 (file)
@@ -814,7 +814,7 @@ class Processor
                }
 
                $activity = [];
-               $activity['@context'] = $object['@context'];
+               $activity['@context'] = $object['@context'] ?? ActivityPub::CONTEXT;
                unset($object['@context']);
                $activity['id'] = $object['id'];
                $activity['to'] = $object['to'] ?? [];
index a76e26ef704ec781d224cf2f567d48ba1621ea77..e9a4cd80a91f9642fec9c9bc1dc2f693551673f0 100644 (file)
@@ -40,6 +40,6 @@ class DelayedPublish
        public static function execute(array $item, int $notify = 0, array $taglist = [], array $attachments = [], bool $unprepared = false, string $uri = '')
        {
                $id = Post\Delayed::publish($item, $notify, $taglist, $attachments, $unprepared, $uri);
-               Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'cid' => $item['contact-id'], 'notify' => $notify, 'unprepared' => $unprepared]);
+               Logger::notice('Post published', ['id' => $id, 'uid' => $item['uid'], 'notify' => $notify, 'unprepared' => $unprepared]);
        }
 }