aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-11-04 14:26:12 -0800
committerzotlabs <mike@macgirvin.com>2019-11-04 14:26:12 -0800
commit1358a81c32ff9dff2e88b196c63f299788b05b57 (patch)
treedc9210141cf787893eb5bbd9729b24b56bf4fa4d /include/follow.php
parent2d08e0955a328fa53f373949f58995ca2a8b736a (diff)
parentaa137fb2d2ddd71f89eea4618cac1594d020ed3a (diff)
downloadvolse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.tar.gz
volse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.tar.bz2
volse-hubzilla-1358a81c32ff9dff2e88b196c63f299788b05b57.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/follow.php b/include/follow.php
index 50b952881..a4d382545 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -142,7 +142,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
$sql_options = (($protocol) ? " and xchan_network = '" . dbesc($protocol) . "' " : '');
- $r = q("select * from xchan where xchan_hash = '%s' or xchan_url = '%s' $sql_options ",
+ $r = q("select * from xchan where (xchan_addr = '%s' or xchan_url = '%s') $sql_options ",
dbesc($url),
dbesc($url)
);