Steemnova - Fixed language issues on friend requests

Words
179
Reading
1 min
Listen
Play
9y

Bug Fix

What was the issue?

There were issues in steemnova while sending/deleting/accepting friendrequests, if the language of the two users are different.

image.png

For more details please see my bugreport about this issue.

Related issue on Github

What was the solution?

As seen in the screenshot the variable language was not defined.
This was the case everytime the language of the user and that of the "friend" were different.

So to fix the bug I searched the "ShowBuddyListPage" for all occurences of the language variable. I then replaced them with the correct language.

image.png

image.png

image.png

As you can see the language of the current user is always in $USER['lang']. It is compared to the language of the other user, if they are different the language of the other user should be used. This is because it determines the language of the message that is send to the other user.
As you can see the language of the other user is in the variables "$row['lang']", "$requestData['lang']" and "$sender['lang']" respectively.

My PullRequest



Posted on Utopian.io - Rewarding Open Source Contributors

Steemnova - Fixed language issues on friend requests | Ecency