Make keybase lookup works for key ids starting with 0x
This commit is contained in:
1 parent
638554f256
commit
f4a8e71c33
1 file changed
+5
+5
@@ -41,6 +41,11 @@ public class KeybaseKeyServer extends KeyServer {
|
|||||||
InsufficientQuery {
|
InsufficientQuery {
|
||||||
ArrayList<ImportKeysListEntry> results = new ArrayList<ImportKeysListEntry>();
|
ArrayList<ImportKeysListEntry> results = new ArrayList<ImportKeysListEntry>();
|
||||||
|
|
||||||
|
if (query.startsWith("0x")) {
|
||||||
|
// cut off "0x" if a user is searching for a key id
|
||||||
|
query = query.substring(2);
|
||||||
|
}
|
||||||
|
|
||||||
JSONObject fromQuery = getFromKeybase("_/api/1.0/user/autocomplete.json?q=", query);
|
JSONObject fromQuery = getFromKeybase("_/api/1.0/user/autocomplete.json?q=", query);
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user