aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-18 19:41:09 -0700
committerzotlabs <mike@macgirvin.com>2018-04-18 19:41:09 -0700
commita81011333fc113006fbf49b561915532f6cd2509 (patch)
treec1c8bcfabc4d7f1f703d2847cd22b7bf90b8f446 /include/follow.php
parenta2e0706d55ee02cf665f366616ef10ff624b3bcc (diff)
downloadvolse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.tar.gz
volse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.tar.bz2
volse-hubzilla-a81011333fc113006fbf49b561915532f6cd2509.zip
follow activitypub by webfinger; requires addon update to all federation protocols
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/follow.php b/include/follow.php
index a63fe66ea..d803afa3f 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -150,9 +150,9 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
// attempt network auto-discovery
- $d = discover_by_webbie($url,$protocol);
+ $wf = discover_by_webbie($url,$protocol);
- if((! $d) && ($is_http)) {
+ if((! $wf) && ($is_http)) {
// try RSS discovery
@@ -167,9 +167,9 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
}
}
- if($d) {
+ if($wf || $d) {
$r = q("select * from xchan where xchan_hash = '%s' or xchan_url = '%s' limit 1",
- dbesc($url),
+ dbesc(($wf) ? $wf : $url),
dbesc($url)
);
}