aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-29 00:57:47 -0800
committerfriendica <info@friendica.com>2013-11-29 00:57:47 -0800
commitdf66c510c9e47750ec7382d6933ff72372c426c1 (patch)
treed80aeb4d3f502edb7ae21ce1178ed80f136af9f7 /mod
parent2563edab43a40d5f6473b4a85ef40509813b6435 (diff)
downloadvolse-hubzilla-df66c510c9e47750ec7382d6933ff72372c426c1.tar.gz
volse-hubzilla-df66c510c9e47750ec7382d6933ff72372c426c1.tar.bz2
volse-hubzilla-df66c510c9e47750ec7382d6933ff72372c426c1.zip
allow zot-info to return results for address= with webbies or naked nicknames
Diffstat (limited to 'mod')
-rw-r--r--mod/zfinger.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 2eb6adc75..ff1bf3a35 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -53,7 +53,8 @@ function zfinger_init(&$a) {
}
elseif(strlen($zaddr)) {
$r = q("select channel.*, xchan.* from channel left join xchan on channel_hash = xchan_hash
- where channel_address = '%s' limit 1",
+ where ( channel_address = '%s' or xchan_addr = '%s' ) limit 1",
+ dbesc($zaddr),
dbesc($zaddr)
);
}