-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 0-suffixed fields to GetIdentity. #17
Conversation
The function is also used in GetIdentitiesByScore. Addresses bug #5729.
@@ -326,36 +353,11 @@ private SimpleFieldSet handleGetIdentitiesByScore(final SimpleFieldSet params) t | |||
if(getAll || score.getTrustee().hasContext(context)) { | |||
// TODO: Allow the client to select what data he wants | |||
final Identity identity = score.getTrustee(); | |||
sfs.putOverwrite("Identity" + i, identity.getID()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line does not have an equivalent in your addIdentityFields() method!
Also moves adding the Identity field into the field-adding function.
Review results (will deal with fixing them, just want to write them down first): Your new code does: It is questionable of whether this is the same. |
More review results (will deal with fixing them, just want to write them down first): |
With regards to the nickname issue: The whole rest of the FCP interface does NOT do the empty string passing if the nickname is null. So it is a good idea to change this like you did. Also, Freetalk already has a proper handler for both cases, and it is the reference implementation of a FCP client. So we can keep the nickname part. |
I've fixed the Score issue with commit e96e131 |
Also please notice the improvement of commit 09d752a |
The function is also used in GetIdentitiesByScore. Addresses bug #5729.