diff options
author | Mario <mario@mariovavti.com> | 2019-11-04 08:35:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-04 09:39:56 +0100 |
commit | a049664219cfffc0d0d7f41b77b7c2c036352e88 (patch) | |
tree | 31d1038af4e3243bd54b2d98a39ded2b796c5a3f | |
parent | 64c6e25896bc5b8f899abdad4e52a9fe6c88a66c (diff) | |
download | volse-hubzilla-a049664219cfffc0d0d7f41b77b7c2c036352e88.tar.gz volse-hubzilla-a049664219cfffc0d0d7f41b77b7c2c036352e88.tar.bz2 volse-hubzilla-a049664219cfffc0d0d7f41b77b7c2c036352e88.zip |
fix query with protocol prefix not always picking the right xchan
(cherry picked from commit 03317b9864c0d7c99e144404c647b9923d8d29ea)
-rw-r--r-- | include/follow.php | 2 |
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) ); |