[ActivityPub] Fix bug introduced with 4d171b27

Too few arguments to function Activitypub_notice::create_notice()
This commit is contained in:
Diogo Cordeiro
2020-07-07 17:57:48 +01:00
parent 08283f6c54
commit 3a2ec3ef9c
2 changed files with 64 additions and 35 deletions

View File

@@ -125,9 +125,9 @@ class Activitypub_notice
*/
public static function create_notice(array $object, Profile $actor_profile, bool $directMessage = false): Notice
{
$id = $object['id']; // int
$id = $object['id']; // int
$url = isset($object['url']) ? $object['url'] : $id; // string
$content = $object['content']; // string
$content = $object['content']; // string
// possible keys: ['inReplyTo', 'latitude', 'longitude']
$settings = [];