aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-10-20 10:08:57 +0200
committerMario Vavti <mario@mariovavti.com>2017-10-20 10:08:57 +0200
commitc80f4feb6234ff195171a92704d7ebe24aff4336 (patch)
treed9149141f52e3758afe1dfa8387bbd8229de1cc9 /include/channel.php
parent2d06e86b5b99af3a5e6c65f4c510bdeaddd5126a (diff)
parent400441d56b21e69663ea7213ccf63fe0ee6a6bab (diff)
downloadvolse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.tar.gz
volse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.tar.bz2
volse-hubzilla-c80f4feb6234ff195171a92704d7ebe24aff4336.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index d7116ce28..399dff87e 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -2604,3 +2604,12 @@ function anon_identity_init($reqvars) {
}
+function pchan_to_chan($pchan) {
+ $chan = $pchan;
+ $chan['channel_address'] = $pchan['pchan_guid'];
+ $chan['channel_hash'] = $pchan['pchan_hash'];
+ $chan['channel_pubkey'] = $pchan['pchan_pubkey'];
+ $chan['channel_prvkey'] = $pchan['pchan_prvkey'];
+ $chan['channel_name'] = $pchan['xchan_name'];
+ return $chan;
+} \ No newline at end of file