aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Owa.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-22 19:24:15 -0700
committerzotlabs <mike@macgirvin.com>2018-04-22 19:24:15 -0700
commit11624cd83ed4ce35fae46dece65931bb989912c5 (patch)
tree78523be532d62f4fd0fa15a41e9f3691d74282a0 /Zotlabs/Module/Owa.php
parent55b7182136adf1834efed8b8989ea219a1fbe1de (diff)
downloadvolse-hubzilla-11624cd83ed4ce35fae46dece65931bb989912c5.tar.gz
volse-hubzilla-11624cd83ed4ce35fae46dece65931bb989912c5.tar.bz2
volse-hubzilla-11624cd83ed4ce35fae46dece65931bb989912c5.zip
owa: attempt channel discovery if not found
Diffstat (limited to 'Zotlabs/Module/Owa.php')
-rw-r--r--Zotlabs/Module/Owa.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Module/Owa.php b/Zotlabs/Module/Owa.php
index e62fc9592..da26748b3 100644
--- a/Zotlabs/Module/Owa.php
+++ b/Zotlabs/Module/Owa.php
@@ -34,6 +34,15 @@ class Owa extends \Zotlabs\Web\Controller {
where hubloc_addr = '%s' ",
dbesc(str_replace('acct:','',$keyId))
);
+ if(! $r) {
+ $found = discover_by_webbie(str_replace('acct:','',$keyId));
+ if($found) {
+ $r = q("select * from hubloc left join xchan on hubloc_hash = xchan_hash
+ where hubloc_addr = '%s' ",
+ dbesc(str_replace('acct:','',$keyId))
+ );
+ }
+ }
if($r) {
foreach($r as $hubloc) {
$verified = \Zotlabs\Web\HTTPSig::verify('',$hubloc['xchan_pubkey']);