diff options
author | Mario <mario@mariovavti.com> | 2022-03-03 11:22:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-03-03 11:22:46 +0000 |
commit | dc3be7ecf70271b02a98b07a4da081b42601d1d0 (patch) | |
tree | 4d55499badb61a9a599b38c5c544f8eaa220fdbb /Zotlabs/Lib | |
parent | cf3c0b593b891f71b96a378f45f16931acd93a37 (diff) | |
download | volse-hubzilla-dc3be7ecf70271b02a98b07a4da081b42601d1d0.tar.gz volse-hubzilla-dc3be7ecf70271b02a98b07a4da081b42601d1d0.tar.bz2 volse-hubzilla-dc3be7ecf70271b02a98b07a4da081b42601d1d0.zip |
collect the accept headers in an array
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/ActivityStreams.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 275f6eff4..1c278f2ee 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -422,15 +422,19 @@ class ActivityStreams { static function get_accept_header_string($channel = null) { + $ret = ''; + $hookdata = []; if ($channel) $hookdata['channel'] = $channel; - $hookdata['data'] = 'application/x-zot-activity+json'; + $hookdata['data'] = ['application/x-zot-activity+json']; call_hooks('get_accept_header_string', $hookdata); - return $hookdata['data']; + $ret = implode(', ', $hookdata['data']); + + return $ret; } |