@baris thank you
Reputation list sorting after import of users
-
What could be a problem, if sorting by reputation is wrong?
I have issue with sorting on page/users/sort-reputation
, my user base is a result of import.I set imported reputation value via
User.setUserFields
after successfulUser.create
-
Imported using nodebb-plugin-import?
-
-
@Nicolas The reputation placed not only in users objects, but in an additional "separate table" also.
/users/sort-reputation
controller uses that "table".
https://github.com/NodeBB/NodeBB/blob/master/src/controllers/users.js#L54 -
As mega said you need to add all users to a sorted set called
users:reputation
.So go through all your users and add their user ids to
users:reputation
with the score being their reputation.