Make keybase lookup works for key ids starting with 0x
This commit is contained in:
@@ -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 {
|
||||||
|
|
||||||
@@ -158,4 +163,4 @@ public class KeybaseKeyServer extends KeyServer {
|
|||||||
public void add(String armoredKey) throws AddKeyException {
|
public void add(String armoredKey) throws AddKeyException {
|
||||||
throw new AddKeyException();
|
throw new AddKeyException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user