Fix notices
This commit is contained in:
parent
38b17e1aae
commit
66c1592171
|
@ -814,7 +814,7 @@ class Processor
|
||||||
}
|
}
|
||||||
|
|
||||||
$activity = [];
|
$activity = [];
|
||||||
$activity['@context'] = $object['@context'];
|
$activity['@context'] = $object['@context'] ?? ActivityPub::CONTEXT;
|
||||||
unset($object['@context']);
|
unset($object['@context']);
|
||||||
$activity['id'] = $object['id'];
|
$activity['id'] = $object['id'];
|
||||||
$activity['to'] = $object['to'] ?? [];
|
$activity['to'] = $object['to'] ?? [];
|
||||||
|
|
|
@ -40,6 +40,6 @@ class DelayedPublish
|
||||||
public static function execute(array $item, int $notify = 0, array $taglist = [], array $attachments = [], bool $unprepared = false, string $uri = '')
|
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);
|
$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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user