aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-15 18:37:08 +0000
committerMario <mario@mariovavti.com>2021-01-15 18:37:08 +0000
commita3bc9251bfea51bb70113a5fea67ca9f2fd066af (patch)
treec42596ea411732a222ca5f4d204ba23c2d13495f /Zotlabs
parent5a325cfa7b35b8ee927cc9887942a083645fb7e1 (diff)
downloadvolse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.tar.gz
volse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.tar.bz2
volse-hubzilla-a3bc9251bfea51bb70113a5fea67ca9f2fd066af.zip
$msg must be array
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Libzot.php4
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');