fix missing await
@ -137,7 +137,6 @@ module.exports = function (User) {
async function getIPMatchedUsers(user) {
const uids = await User.getUidsFromSet('ip:' + user.ip + ':uid', 0, -1);
const data = User.getUsersFields(uids, ['uid', 'username', 'picture']);
user.ipMatch = data;
user.ipMatch = await User.getUsersFields(uids, ['uid', 'username', 'picture']);
}
};
@ -28,7 +28,7 @@
<tr data-id="{posts.id}">
<td class="col-md-1">
<!-- IF posts.user.userslug -->
<a href="/uid/{posts.user.uid}">{posts.user.username}</a>
<a href="{config.relative_path}/uid/{posts.user.uid}">{posts.user.username}</a>
<!-- ELSE -->
{posts.user.username}
<!-- ENDIF posts.user.userslug -->
@ -62,7 +62,7 @@
<div class="user-img avatar avatar-sm" style="background-color: {users.ipMatch.icon:bgColor};">{users.ipMatch.icon:text}</div>
<!-- ENDIF users.ipMatch.picture -->
<a href="/uid/{users.ipMatch.uid}">{users.ipMatch.username}</a>
<a href="{config.relative_path}/uid/{users.ipMatch.uid}">{users.ipMatch.username}</a>
<!-- END users.ipMatch -->
</td>
<td class="hidden-xs">