aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-12-09 18:30:30 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-12-09 18:30:30 -0800
commit72edc9cd6cc066015e35ec32b4f77a08b764558b (patch)
tree15630d2833a963499ad79a8909aa00061b88bba9 /include/network.php
parent93123e1fa8be154aa59b51b6022756b294ed452f (diff)
downloadvolse-hubzilla-72edc9cd6cc066015e35ec32b4f77a08b764558b.tar.gz
volse-hubzilla-72edc9cd6cc066015e35ec32b4f77a08b764558b.tar.bz2
volse-hubzilla-72edc9cd6cc066015e35ec32b4f77a08b764558b.zip
start working on the singleton setting
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index 5895d302b..68452c3d1 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1883,3 +1883,16 @@ function check_channelallowed($hash) {
return $retvalue;
}
+function deliverable_singleton($xchan) {
+ $r = q("select abook_instance from abook where abook_xchan = '%s' limit 1",
+ dbesc($xchan['xchan_hash'])
+ );
+ if($r) {
+ if(! $r[0]['abook_instance'])
+ return true;
+ if(strpos($r[0]['abook_instance'],z_root()) !== false)
+ return true;
+ }
+ return false;
+}
+