diff options
author | Mario <mario@mariovavti.com> | 2021-01-15 18:37:08 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-15 18:37:08 +0000 |
commit | a3bc9251bfea51bb70113a5fea67ca9f2fd066af (patch) | |
tree | c42596ea411732a222ca5f4d204ba23c2d13495f | |
parent | 5a325cfa7b35b8ee927cc9887942a083645fb7e1 (diff) | |
download | volse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.tar.gz volse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.tar.bz2 volse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.zip |
$msg must be array
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 4291ce518..678c896d6 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -87,7 +87,7 @@ class Libzot { * packet type: one of 'ping', 'pickup', 'purge', 'refresh', 'keychange', 'force_refresh', 'notify', 'auth_check' * @param array $recipients * envelope recipients, array of portable_id's; empty for public posts - * @param string $msg + * @param array $msg * optional message * @param string $encoding * optional encoding, default 'activitystreams' @@ -98,7 +98,7 @@ class Libzot { * optional comma separated list of encryption methods @ref best_algorithm() * @returns string json encoded zot packet */ - static function build_packet($channel, $type = 'activity', $recipients = null, $msg = '', $encoding = 'activitystreams', $remote_key = null, $methods = '') { + static function build_packet($channel, $type = 'activity', $recipients = null, $msg = [], $encoding = 'activitystreams', $remote_key = null, $methods = '') { $sig_method = get_config('system','signature_algorithm','sha256'); |