aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-19 17:24:11 -0700
committerzotlabs <mike@macgirvin.com>2017-10-19 17:24:11 -0700
commit9d51318c53e1adc2e4d4c8586f8783819516991e (patch)
tree444ed9e137016bd1e399d36d784126378a21524c /include
parent52183f8bf85777068839490c37a882191f216fe4 (diff)
downloadvolse-hubzilla-9d51318c53e1adc2e4d4c8586f8783819516991e.tar.gz
volse-hubzilla-9d51318c53e1adc2e4d4c8586f8783819516991e.tar.bz2
volse-hubzilla-9d51318c53e1adc2e4d4c8586f8783819516991e.zip
table structure for pseudo or proxy channels (pchan)
Diffstat (limited to 'include')
-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