aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-15 13:33:23 +0000
committerMario <mario@mariovavti.com>2023-02-15 13:33:23 +0000
commit09a60774d746de57d6f9e479a1f6cf70c691f031 (patch)
tree1c93fee3a5a88b4cbcd9d9b9237451cf2fee99a1 /include/hubloc.php
parent1ca988b177834467671137c94f17a5948b465f6f (diff)
downloadvolse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.tar.gz
volse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.tar.bz2
volse-hubzilla-09a60774d746de57d6f9e479a1f6cf70c691f031.zip
we can sign messages which are not from the primary location
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 0236e4ae7..4d2980a6b 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -392,3 +392,11 @@ function z6_discover() {
}
}
+
+function get_hubloc_id_urls_by_x($xchan) {
+ $r = q("SELECT hubloc_id_url FROM hubloc WHERE hubloc_deleted = 0 AND hubloc_hash = '%s' order by hubloc_primary desc",
+ dbesc($xchan)
+ );
+ return flatten_array_recursive($r);
+}
+