aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-15 11:26:14 -0800
committerzotlabs <mike@macgirvin.com>2017-11-15 11:26:14 -0800
commit67b6d41d57b20a223a0cb6f33cbf81473b0936ab (patch)
tree7ee73fdb95fa183711fb4a5ed0a61a18d91932a4 /include/channel.php
parent8e534918672c2ccf3614623b8bd368d18318f453 (diff)
downloadvolse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.tar.gz
volse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.tar.bz2
volse-hubzilla-67b6d41d57b20a223a0cb6f33cbf81473b0936ab.zip
This should sort out hubzilla issue #826 but requires a bit more testing. It may also sort out some reported issues with commenting and liking items in the public stream.
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/channel.php b/include/channel.php
index 4f0e8ec6a..2783dea97 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -101,14 +101,14 @@ function create_sys_channel() {
set_config('system', 'prvkey', $hostkey['prvkey']);
}
- create_identity(array(
- 'account_id' => 'xxx', // This will create an identity with an (integer) account_id of 0, but account_id is required
- 'nickname' => 'sys',
- 'name' => 'System',
- 'pageflags' => 0,
- 'publish' => 0,
- 'system' => 1
- ));
+ create_identity([
+ 'account_id' => 'xxx', // Typecast trickery: account_id is required. This will create an identity with an (integer) account_id of 0
+ 'nickname' => 'sys',
+ 'name' => 'System',
+ 'pageflags' => 0,
+ 'publish' => 0,
+ 'system' => 1
+ ]);
}